diff options
author | 2018-02-26 18:49:44 +0000 | |
---|---|---|
committer | 2018-02-26 18:49:44 +0000 | |
commit | 47db7991f11a1f4e803eaf5cd331f9d6bb2de244 (patch) | |
tree | 8e9ca8a41fdf5f2b6851ef088125e4fcc18f4496 /app_test.py | |
parent | brings coverage to 90% (#24) (diff) |
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
Diffstat (limited to 'app_test.py')
-rw-r--r-- | app_test.py | 10 |
1 files changed, 10 insertions, 0 deletions
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') |