mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 00:12:16 +02:00
Fix a domaininfo test
This commit is contained in:
parent
29b9b0bf23
commit
a0d50efafb
1 changed files with 2 additions and 2 deletions
|
@ -1438,6 +1438,7 @@ class TestDomainOrganization(TestDomainOverview):
|
|||
org_name_page = self.app.get(reverse("domain-org-name-address", kwargs={"pk": self.domain.id}))
|
||||
|
||||
form = org_name_page.forms[0]
|
||||
# I think we can remove this check below bc this doesn't have a value # anymore bc it's an actual string
|
||||
# Check the value of the input field
|
||||
agency_input = form.fields["federal_agency"][0]
|
||||
self.assertEqual(agency_input.value, "AMTRAK")
|
||||
|
@ -1485,8 +1486,7 @@ class TestDomainOrganization(TestDomainOverview):
|
|||
self.domain_information.save()
|
||||
|
||||
federal_agency, _ = FederalAgency.objects.get_or_create(agency="AMTRAK")
|
||||
|
||||
old_federal_agency_value = (federal_agency, federal_agency)
|
||||
old_federal_agency_value = federal_agency
|
||||
try:
|
||||
# Add a federal agency. Defined as a tuple since this list may change order.
|
||||
self.domain_information.federal_agency = old_federal_agency_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue