mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 10:29:23 +02:00
Add in print statements
This commit is contained in:
parent
1adf513db6
commit
be2f7fe020
1 changed files with 8 additions and 1 deletions
|
@ -2023,9 +2023,14 @@ class DomainRequestTests(TestWithUser, WebTest):
|
||||||
org_contact_form = org_contact_page.forms[0]
|
org_contact_form = org_contact_page.forms[0]
|
||||||
# federal agency so we have to fill in federal_agency
|
# federal agency so we have to fill in federal_agency
|
||||||
federal_agency, _ = FederalAgency.objects.get_or_create(agency="General Services Administration")
|
federal_agency, _ = FederalAgency.objects.get_or_create(agency="General Services Administration")
|
||||||
org_contact_form["organization_contact-federal_agency"] = federal_agency
|
print("!!! org_contact_form displayed", org_contact_form.__dict__)
|
||||||
|
print("!!! Federal agency is", federal_agency)
|
||||||
|
org_contact_form["organization_contact-federal_agency"] = "67"
|
||||||
|
# org_contact_form["organization_contact-federal_agency"] = federal_agency
|
||||||
org_contact_form["organization_contact-organization_name"] = "Testorg"
|
org_contact_form["organization_contact-organization_name"] = "Testorg"
|
||||||
|
print("!!! GET PAST Organization name")
|
||||||
org_contact_form["organization_contact-address_line1"] = "address 1"
|
org_contact_form["organization_contact-address_line1"] = "address 1"
|
||||||
|
print("!!! GET PAST Address Line 1")
|
||||||
org_contact_form["organization_contact-address_line2"] = "address 2"
|
org_contact_form["organization_contact-address_line2"] = "address 2"
|
||||||
org_contact_form["organization_contact-city"] = "NYC"
|
org_contact_form["organization_contact-city"] = "NYC"
|
||||||
org_contact_form["organization_contact-state_territory"] = "NY"
|
org_contact_form["organization_contact-state_territory"] = "NY"
|
||||||
|
@ -2033,9 +2038,11 @@ class DomainRequestTests(TestWithUser, WebTest):
|
||||||
org_contact_form["organization_contact-urbanization"] = "URB Royal Oaks"
|
org_contact_form["organization_contact-urbanization"] = "URB Royal Oaks"
|
||||||
|
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
|
print("!!! Before submit")
|
||||||
org_contact_result = org_contact_form.submit()
|
org_contact_result = org_contact_form.submit()
|
||||||
|
|
||||||
# ---- AO CONTACT PAGE ----
|
# ---- AO CONTACT PAGE ----
|
||||||
|
print("!!! After submit")
|
||||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||||
ao_page = org_contact_result.follow()
|
ao_page = org_contact_result.follow()
|
||||||
self.assertContains(ao_page, "Executive branch federal agencies")
|
self.assertContains(ao_page, "Executive branch federal agencies")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue