Update test_models.py

This commit is contained in:
zandercymatics 2024-03-12 16:10:19 -06:00
parent 7f5bfa07a6
commit 26dabb3ab0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -917,10 +917,12 @@ class TestDomainInformation(TestCase):
@boto3_mocking.patching
def test_approval_creates_info(self):
self.maxDiff = None
draft_domain, _ = DraftDomain.objects.get_or_create(name="igorville.gov")
user, _ = User.objects.get_or_create()
domain_request = DomainRequest.objects.create(creator=user, requested_domain=draft_domain, notes="test notes")
investigator, _ = User.objects.get_or_create(username="frenchtoast", is_staff=True)
domain_request = DomainRequest.objects.create(
creator=user, requested_domain=draft_domain, notes="test notes", investigator=investigator
)
with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
with less_console_noise():