mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 22:14:43 +02:00
Fix linting errors
This commit is contained in:
parent
8b76490794
commit
c0ae800d31
2 changed files with 14 additions and 8 deletions
|
@ -166,7 +166,9 @@ class TypeOfWorkForm(RegistrarForm):
|
|||
)
|
||||
|
||||
more_organization_information = forms.CharField(
|
||||
label="Describe how your organization is a government organization that is independent of a state government. Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.",
|
||||
label="Describe how your organization is a government organization that is "
|
||||
"independent of a state government. Include links to authorizing legislation, "
|
||||
"applicable bylaws or charter, or other documentation to support your claims.",
|
||||
widget=forms.Textarea(),
|
||||
)
|
||||
|
||||
|
|
|
@ -670,7 +670,9 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||
|
||||
type_form = type_page.form
|
||||
type_form["organization_type-organization_type"] = DomainApplication.OrganizationChoices.INTERSTATE
|
||||
type_form[
|
||||
"organization_type-organization_type"
|
||||
] = DomainApplication.OrganizationChoices.INTERSTATE
|
||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||
type_result = type_page.form.submit()
|
||||
|
||||
|
@ -696,7 +698,6 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
self.assertEquals(contact_result.status_code, 302)
|
||||
self.assertEquals(contact_result["Location"], "/register/type_of_work/")
|
||||
|
||||
|
||||
def test_application_type_of_work_special(self):
|
||||
"""Special districts have to answer an additional question."""
|
||||
type_page = self.app.get(reverse("application:")).follow()
|
||||
|
@ -707,7 +708,9 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||
|
||||
type_form = type_page.form
|
||||
type_form["organization_type-organization_type"] = DomainApplication.OrganizationChoices.SPECIAL_DISTRICT
|
||||
type_form[
|
||||
"organization_type-organization_type"
|
||||
] = DomainApplication.OrganizationChoices.SPECIAL_DISTRICT
|
||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||
type_result = type_page.form.submit()
|
||||
# follow first redirect
|
||||
|
@ -726,7 +729,9 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||
|
||||
type_form = type_page.form
|
||||
type_form["organization_type-organization_type"] = DomainApplication.OrganizationChoices.INTERSTATE
|
||||
type_form[
|
||||
"organization_type-organization_type"
|
||||
] = DomainApplication.OrganizationChoices.INTERSTATE
|
||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||
type_result = type_page.form.submit()
|
||||
# follow first redirect
|
||||
|
@ -735,7 +740,6 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
|
||||
self.assertContains(contact_page, self.TITLES[Step.TYPE_OF_WORK])
|
||||
|
||||
|
||||
@skip("WIP")
|
||||
def test_application_edit_restore(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue