mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Update test_views_request.py
This commit is contained in:
parent
cc0c53006c
commit
59d1301fd7
1 changed files with 9 additions and 0 deletions
|
@ -3081,17 +3081,26 @@ class TestDomainRequestWizard(TestWithUser, WebTest):
|
||||||
contact = Contact.objects.create(
|
contact = Contact.objects.create(
|
||||||
first_name="Henry",
|
first_name="Henry",
|
||||||
last_name="Mcfakerson",
|
last_name="Mcfakerson",
|
||||||
|
title="test",
|
||||||
|
email="moar@igorville.gov",
|
||||||
|
phone="1234567890"
|
||||||
)
|
)
|
||||||
# Create two non-orphaned contacts
|
# Create two non-orphaned contacts
|
||||||
contact_2 = Contact.objects.create(
|
contact_2 = Contact.objects.create(
|
||||||
first_name="Saturn",
|
first_name="Saturn",
|
||||||
last_name="Mars",
|
last_name="Mars",
|
||||||
|
title="test",
|
||||||
|
email="moar@igorville.gov",
|
||||||
|
phone="1234567890"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Attach a user object to a contact (should not be deleted)
|
# Attach a user object to a contact (should not be deleted)
|
||||||
contact_user, _ = Contact.objects.get_or_create(
|
contact_user, _ = Contact.objects.get_or_create(
|
||||||
first_name="Hank",
|
first_name="Hank",
|
||||||
last_name="McFakey",
|
last_name="McFakey",
|
||||||
|
title="test",
|
||||||
|
email="moar@igorville.gov",
|
||||||
|
phone="1234567890"
|
||||||
)
|
)
|
||||||
|
|
||||||
site = DraftDomain.objects.create(name="igorville.gov")
|
site = DraftDomain.objects.create(name="igorville.gov")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue