This commit is contained in:
rachidatecs 2023-08-14 12:58:47 -04:00
parent f7c9c1c42c
commit e1d78bda5a
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
elif obj.status == models.DomainApplication.SUBMITTED:
# This is an fsm in model which will throw an error if 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
# transition method calls below.
obj.status = original_obj.status

View file

@ -152,7 +152,7 @@ class TestDomainApplicationAdmin(TestCase):
# Perform assertions on the mock call itself
mock_client_instance.send_email.assert_called_once()
def test_save_model_sets_approved_domain(self):
# make sure there is no user with this email
EMAIL = "mayor@igorville.gov"