mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-14 06:55:08 +02:00
simplified test case
This commit is contained in:
parent
20cecf2a94
commit
49f56a7205
1 changed files with 1 additions and 25 deletions
|
@ -147,31 +147,7 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
||||||
def test_application_multiple_applications_exist(self):
|
def test_application_multiple_applications_exist(self):
|
||||||
"""Test that an info message appears when user has multiple applications already"""
|
"""Test that an info message appears when user has multiple applications already"""
|
||||||
# create and submit an application
|
# create and submit an application
|
||||||
contact = Contact.objects.create()
|
application = completed_application(user=self.user)
|
||||||
com_website, _ = Website.objects.get_or_create(website="igorville.com")
|
|
||||||
gov_website, _ = Website.objects.get_or_create(website="igorville.gov")
|
|
||||||
domain, _ = DraftDomain.objects.get_or_create(name="igorville.gov")
|
|
||||||
application = DomainApplication.objects.create(
|
|
||||||
creator=self.user,
|
|
||||||
investigator=self.user,
|
|
||||||
organization_type=DomainApplication.OrganizationChoices.FEDERAL,
|
|
||||||
federal_type=DomainApplication.BranchChoices.EXECUTIVE,
|
|
||||||
is_election_board=False,
|
|
||||||
organization_name="Test",
|
|
||||||
address_line1="100 Main St.",
|
|
||||||
address_line2="APT 1A",
|
|
||||||
state_territory="CA",
|
|
||||||
zipcode="12345-6789",
|
|
||||||
authorizing_official=contact,
|
|
||||||
requested_domain=domain,
|
|
||||||
submitter=contact,
|
|
||||||
purpose="Igorville rules!",
|
|
||||||
anything_else="All of Igorville loves the dotgov program.",
|
|
||||||
is_policy_acknowledged=True,
|
|
||||||
)
|
|
||||||
application.current_websites.add(com_website)
|
|
||||||
application.alternative_domains.add(gov_website)
|
|
||||||
application.other_contacts.add(contact)
|
|
||||||
application.submit()
|
application.submit()
|
||||||
application.save()
|
application.save()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue