Fix tests

This commit is contained in:
zandercymatics 2024-05-03 08:43:50 -06:00
parent 1eba8f20c4
commit 55306f6d2d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -537,7 +537,7 @@ class TestDomainAdmin(MockEppLib, WebTest):
# There are 4 template references to Federal (4) plus four references in the table
# for our actual domain_request
self.assertContains(response, "Federal", count=39)
self.assertContains(response, "Federal", count=42)
# This may be a bit more robust
self.assertContains(response, '<td class="field-generic_org_type">Federal</td>', count=1)
# Now let's make sure the long description does not exist
@ -1310,7 +1310,7 @@ class TestDomainRequestAdmin(MockEppLib):
response = self.client.get("/admin/registrar/domainrequest/?generic_org_type__exact=federal")
# There are 2 template references to Federal (4) and two in the results data
# of the request
self.assertContains(response, "Federal", count=37)
self.assertContains(response, "Federal", count=40)
# This may be a bit more robust
self.assertContains(response, '<td class="field-generic_org_type">Federal</td>', count=1)
# Now let's make sure the long description does not exist