mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 15:34:53 +02:00
hash
This commit is contained in:
parent
b6a70e6d3c
commit
5815d6733c
3 changed files with 42 additions and 3 deletions
|
@ -1540,6 +1540,17 @@ class TestDomainRequestAdmin(MockEppLib):
|
|||
# Should be unchanged from before
|
||||
self.assertEqual(len(self.mock_client.EMAILS_SENT), 4)
|
||||
|
||||
# Tests if an analyst can override existing email content
|
||||
questionable_ao = DomainRequest.ActionNeededReasons.QUESTIONABLE_AUTHORIZING_OFFICIAL
|
||||
domain_request.action_needed_reason_email = "custom email content"
|
||||
domain_request.save()
|
||||
self.transition_state_and_send_email(domain_request, action_needed, action_needed_reason=questionable_ao)
|
||||
|
||||
self.assert_email_is_accurate(
|
||||
"custom email content", 4, EMAIL, bcc_email_address=BCC_EMAIL
|
||||
)
|
||||
self.assertEqual(len(self.mock_client.EMAILS_SENT), 5)
|
||||
|
||||
def test_save_model_sends_submitted_email(self):
|
||||
"""When transitioning to submitted from started or withdrawn on a domain request,
|
||||
an email is sent out.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue