From 47db7991f11a1f4e803eaf5cd331f9d6bb2de244 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 26 Feb 2018 18:49:44 +0000 Subject: Help page #z62n (#25) * Help page and misc improvements Committing so I can go home >:| * Changes for @lmn * Rephrase first paragraph * Rephrase questions so they aren't all about discord.py * Remove _every single header_ on the help page from the nav * Unit test the help route * Small styling fixes * Add page-specific classes to body element * Clean up section padding * IndexView -> HelpView * Remove unnecessary path in test --- app_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app_test.py') diff --git a/app_test.py b/app_test.py index 97e38f4d..bd91a51e 100644 --- a/app_test.py +++ b/app_test.py @@ -34,6 +34,16 @@ class BaseEndpoints(SiteTest): response = self.client.get('/', 'http://pytest.local') self.assertEqual(response.status_code, 200) + def test_help(self): + """ Check the help path responds with 200 OK """ + response = self.client.get('/help') + self.assertEqual(response.status_code, 200) + + def test_not_found(self): + """ Check paths without handlers returns 404 Not Found """ + response = self.client.get('/nonexistentpath') + self.assertEqual(response.status_code, 404) + def test_invite(self): """ Check invite redirects """ response = self.client.get('/invite') -- cgit v1.2.3