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