Fix linting errors

This commit is contained in:
Neil Martinsen-Burrell 2023-01-10 15:09:55 -06:00
parent 8b76490794
commit c0ae800d31
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
2 changed files with 14 additions and 8 deletions

View file

@ -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(),
)

View file

@ -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,14 +708,16 @@ 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
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
contact_page = type_result.follow()
self.assertContains(contact_page, self.TITLES[Step.TYPE_OF_WORK])
self.assertContains(contact_page, self.TITLES[Step.TYPE_OF_WORK])
def test_application_type_of_work_interstate(self):
"""Special districts have to answer an additional question."""
@ -726,15 +729,16 @@ 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
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
contact_page = type_result.follow()
self.assertContains(contact_page, self.TITLES[Step.TYPE_OF_WORK])
self.assertContains(contact_page, self.TITLES[Step.TYPE_OF_WORK])
@skip("WIP")
def test_application_edit_restore(self):