mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
lint
This commit is contained in:
parent
f7c9c1c42c
commit
e1d78bda5a
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
||||||
elif obj.status == models.DomainApplication.SUBMITTED:
|
elif obj.status == models.DomainApplication.SUBMITTED:
|
||||||
# This is an fsm in model which will throw an error if the
|
# This is an fsm in model which will throw an error if the
|
||||||
# transition condition is violated, so we roll back the
|
# transition condition is violated, so we roll back the
|
||||||
# status to what it was before the admn user changed it and
|
# status to what it was before the admin user changed it and
|
||||||
# let the fsm method set it. Same comment applies to
|
# let the fsm method set it. Same comment applies to
|
||||||
# transition method calls below.
|
# transition method calls below.
|
||||||
obj.status = original_obj.status
|
obj.status = original_obj.status
|
||||||
|
|
|
@ -152,7 +152,7 @@ class TestDomainApplicationAdmin(TestCase):
|
||||||
|
|
||||||
# Perform assertions on the mock call itself
|
# Perform assertions on the mock call itself
|
||||||
mock_client_instance.send_email.assert_called_once()
|
mock_client_instance.send_email.assert_called_once()
|
||||||
|
|
||||||
def test_save_model_sets_approved_domain(self):
|
def test_save_model_sets_approved_domain(self):
|
||||||
# make sure there is no user with this email
|
# make sure there is no user with this email
|
||||||
EMAIL = "mayor@igorville.gov"
|
EMAIL = "mayor@igorville.gov"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue