Fix unit tests

This commit is contained in:
zandercymatics 2024-04-26 10:45:13 -06:00
parent b89db7ff27
commit d760f2dab4
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -538,7 +538,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=36)
self.assertContains(response, "Federal", count=39)
# 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
@ -1200,7 +1200,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=34)
self.assertContains(response, "Federal", count=37)
# 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
@ -2470,7 +2470,7 @@ class TestDomainInvitationAdmin(TestCase):
)
# Assert that the filters are added
self.assertContains(response, "invited", count=2)
self.assertContains(response, "invited", count=4)
self.assertContains(response, "Invited", count=2)
self.assertContains(response, "retrieved", count=2)
self.assertContains(response, "Retrieved", count=2)
@ -3845,7 +3845,7 @@ class TestFederalAgency(TestCase):
# Test for a description snippet
self.assertContains(response, "This table does not have a description yet.")
self.assertNotContains(response, "Show more")
self.assertContains(response, "Show more")
class TestPublicContact(TestCase):