mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
Update test_models.py
This commit is contained in:
parent
7f5bfa07a6
commit
26dabb3ab0
1 changed files with 4 additions and 2 deletions
|
@ -917,10 +917,12 @@ class TestDomainInformation(TestCase):
|
||||||
|
|
||||||
@boto3_mocking.patching
|
@boto3_mocking.patching
|
||||||
def test_approval_creates_info(self):
|
def test_approval_creates_info(self):
|
||||||
self.maxDiff = None
|
|
||||||
draft_domain, _ = DraftDomain.objects.get_or_create(name="igorville.gov")
|
draft_domain, _ = DraftDomain.objects.get_or_create(name="igorville.gov")
|
||||||
user, _ = User.objects.get_or_create()
|
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 boto3_mocking.clients.handler_for("sesv2", self.mock_client):
|
||||||
with less_console_noise():
|
with less_console_noise():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue