mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
Fix code formatting
This commit is contained in:
parent
d3a285b5d8
commit
e1ba194647
2 changed files with 4 additions and 4 deletions
|
@ -469,7 +469,9 @@ class DomainApplication(TimeStampedModel):
|
||||||
nothing.
|
nothing.
|
||||||
"""
|
"""
|
||||||
if self.submitter is None or self.submitter.email is None:
|
if self.submitter is None or self.submitter.email is None:
|
||||||
logger.warning("Cannot send confirmation email, no submitter email address.")
|
logger.warning(
|
||||||
|
"Cannot send confirmation email, no submitter email address."
|
||||||
|
)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
send_templated_email(
|
send_templated_email(
|
||||||
|
|
|
@ -549,9 +549,7 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
||||||
# the post request should return a redirect to the contact
|
# the post request should return a redirect to the contact
|
||||||
# question
|
# question
|
||||||
self.assertEqual(election_result.status_code, 302)
|
self.assertEqual(election_result.status_code, 302)
|
||||||
self.assertEqual(
|
self.assertEqual(election_result["Location"], "/register/organization_contact/")
|
||||||
election_result["Location"], "/register/organization_contact/"
|
|
||||||
)
|
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
contact_page = election_result.follow()
|
contact_page = election_result.follow()
|
||||||
self.assertNotContains(contact_page, "Federal agency")
|
self.assertNotContains(contact_page, "Federal agency")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue