mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
tweaking unit tests still
This commit is contained in:
parent
803fe81f2d
commit
ae9d67ceb7
1 changed files with 6 additions and 2 deletions
|
@ -1131,9 +1131,10 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest):
|
||||||
success_page = success_result.follow()
|
success_page = success_result.follow()
|
||||||
self.assertContains(success_page, "mayor@igorville.gov")
|
self.assertContains(success_page, "mayor@igorville.gov")
|
||||||
|
|
||||||
class TestApplicationStatus(TestCase):
|
class TestApplicationStatus(TestWithUser, WebTest):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
|
self.app.set_user(self.user.username)
|
||||||
|
|
||||||
def _completed_application(
|
def _completed_application(
|
||||||
self,
|
self,
|
||||||
|
@ -1207,7 +1208,10 @@ class TestApplicationStatus(TestCase):
|
||||||
|
|
||||||
def test_application_status(self):
|
def test_application_status(self):
|
||||||
"""Checking application status page"""
|
"""Checking application status page"""
|
||||||
|
application = self._completed_application()
|
||||||
|
application.save()
|
||||||
home_page = self.app.get("/")
|
home_page = self.app.get("/")
|
||||||
|
print(home_page)
|
||||||
self.assertContains(home_page, "citystatus.gov")
|
self.assertContains(home_page, "citystatus.gov")
|
||||||
# click the "Manage" link
|
# click the "Manage" link
|
||||||
detail_page = home_page.click("Manage")
|
detail_page = home_page.click("Manage")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue