Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Aug 18, 2023
1 parent 0e88c82 commit c5d65f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ureport/public/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_has_better_domain_processors(self):
# using subdomain wihout domain on org, login is shown and indexing should be allow
response = self.client.get(home_url, HTTP_HOST="nigeria.ureport.io")
self.assertEqual(response.request["PATH_INFO"], "/")
self.assertNotContains(response, "<meta name='robots' content='noindex'")
self.assertNotContains(response, '<meta name="robots" content="noindex"')
# self.assertContains(response, "nigeria.ureport.io/users/login/")

self.nigeria.domain = "ureport.ng"
Expand All @@ -88,13 +88,13 @@ def test_has_better_domain_processors(self):
# using subdomain without domain on org, indexing is disallowed but login should be shown
response = self.client.get(home_url, HTTP_HOST="nigeria.ureport.io")
self.assertEqual(response.request["PATH_INFO"], "/")
self.assertContains(response, "<meta name='robots' content='noindex'")
self.assertContains(response, '<meta name="robots" content="noindex"')
# self.assertContains(response, "nigeria.ureport.io/users/login/")

# using custom domain, login is hidden and indexing should be allow
response = self.client.get(home_url, HTTP_HOST="ureport.ng")
self.assertEqual(response.request["PATH_INFO"], "/")
self.assertNotContains(response, "<meta name='robots' content='noindex'")
self.assertNotContains(response, '<meta name="robots" content="noindex"')
self.assertNotContains(response, "nigeria.ureport.io/users/login/")

def test_org_lang_params_processors(self):
Expand Down

0 comments on commit c5d65f3

Please sign in to comment.