This commit is contained in:
rachidatecs 2023-06-07 14:50:38 -04:00
parent efc800a3bf
commit 809c752397
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525

View file

@ -5,7 +5,7 @@ from django.contrib.auth import get_user_model
from registrar.models import Contact, DraftDomain, Website, DomainApplication, User from registrar.models import Contact, DraftDomain, Website, DomainApplication, User
from django.conf import settings from django.conf import settings
from unittest.mock import MagicMock, ANY from unittest.mock import MagicMock
import boto3_mocking # type: ignore import boto3_mocking # type: ignore
@ -116,7 +116,7 @@ class TestDomainApplicationAdmin(TestCase):
from_email = kwargs.get("FromEmailAddress") from_email = kwargs.get("FromEmailAddress")
to_email = kwargs["Destination"]["ToAddresses"][0] to_email = kwargs["Destination"]["ToAddresses"][0]
email_content = kwargs["Content"] email_content = kwargs["Content"]
email_body = email_content['Simple']['Body']['Text']['Data'] email_body = email_content["Simple"]["Body"]["Text"]["Data"]
# Assert or perform other checks on the email details # Assert or perform other checks on the email details
expected_string = "Your .gov domain request is being reviewed" expected_string = "Your .gov domain request is being reviewed"