From ead7d4f4c5789fe2b5fa2d08175346fa8fcb24da Mon Sep 17 00:00:00 2001 From: Sam Wedgwood Date: Wed, 21 Mar 2018 19:26:16 +0000 Subject: Added a Code Jam Countdown (#1eevq) (#43) * added countdown * updated jam dates * added test * flake8 * flake8 (i did it on wrong file) --- app_test.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app_test.py') diff --git a/app_test.py b/app_test.py index 2176fe08..651d7a96 100644 --- a/app_test.py +++ b/app_test.py @@ -32,6 +32,11 @@ class SiteTest(TestCase): class RootEndpoint(SiteTest): """ Test cases for the root endpoint and error handling """ + def test_countdown(self): + """ Check the countdown path responds with 200 OK """ + response = self.client.get('/countdown', "http://pytest.local") + self.assertEqual(response.status_code, 200) + def test_index(self): """ Check the root path reponds with 200 OK """ response = self.client.get('/', 'http://pytest.local') -- cgit v1.2.3