Skip to content

Commit

Permalink
Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
rachidatecs committed Jan 11, 2024
1 parent 678ca6d commit 2e6fe68
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/registrar/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ def test_home_lists_domain_applications(self):
# clean up
application.delete()

def test_home_lists_domains(self):
response = self.client.get("/")
domain, _ = Domain.objects.get_or_create(name="igorville.gov")
self.assertNotContains(response, "igorville.gov")
role, _ = UserDomainRole.objects.get_or_create(user=self.user, domain=domain, role=UserDomainRole.Roles.MANAGER)
response = self.client.get("/")
# count = 2 because it is also in screenreader content
self.assertContains(response, "igorville.gov", count=2)
self.assertContains(response, "Expired")
# clean up
role.delete()

def test_application_form_view(self):
response = self.client.get("/register/", follow=True)
self.assertContains(
Expand Down Expand Up @@ -1522,12 +1510,12 @@ def test_unknown_domain_does_not_show_as_expired_on_homepage(self):
# from constructors. Let's reset.
Domain.objects.all().delete()
UserDomainRole.objects.all().delete()

self.domain, _ = Domain.objects.get_or_create(name="igorville.gov")
home_page = self.app.get("/")
self.assertNotContains(home_page, "igorville.gov")
self.role, _ = UserDomainRole.objects.get_or_create(
user=self.user, domain=self.domain, role=UserDomainRole.Roles.MANAGER
)

home_page = self.app.get("/")
self.assertContains(home_page, "igorville.gov")
igorville = Domain.objects.get(name="igorville.gov")
Expand Down

0 comments on commit 2e6fe68

Please sign in to comment.