mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 02:24:07 +02:00
Revise banner color and copy
This commit is contained in:
parent
02d147ae11
commit
0eac1db3ad
3 changed files with 8 additions and 4 deletions
|
@ -22,10 +22,10 @@ class MyTestCase(TestCase):
|
|||
def test_production_environment(self):
|
||||
"""No banner on prod."""
|
||||
home_page = self.client.get("/")
|
||||
self.assertNotContains(home_page, "You are not on production.")
|
||||
self.assertNotContains(home_page, "You are on a test site.")
|
||||
|
||||
@override_settings(IS_PRODUCTION=False)
|
||||
def test_non_production_environment(self):
|
||||
"""Banner on non-prod."""
|
||||
home_page = self.client.get("/")
|
||||
self.assertContains(home_page, "You are not on production.")
|
||||
self.assertContains(home_page, "You are on a test site.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue