diff options
author | 2019-04-13 16:16:11 +0200 | |
---|---|---|
committer | 2019-04-13 16:16:11 +0200 | |
commit | f29472a56f925127a077c4cadcc13fa852dc665b (patch) | |
tree | 34fcafe8e98ab0d9babc87f2118250ecbe697bda /pydis_site/apps/main/tests.py | |
parent | Added hrefs for the cards (diff) |
refactoring slightly to use a class-based view, changing home to main. Ready to write the API search stuff now.
Diffstat (limited to 'pydis_site/apps/main/tests.py')
-rw-r--r-- | pydis_site/apps/main/tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pydis_site/apps/main/tests.py b/pydis_site/apps/main/tests.py new file mode 100644 index 00000000..54fac6e8 --- /dev/null +++ b/pydis_site/apps/main/tests.py @@ -0,0 +1,9 @@ +from django.test import TestCase +from django_hosts.resolvers import reverse + + +class TestIndexReturns200(TestCase): + def test_index_returns_200(self): + url = reverse('index') + resp = self.client.get(url) + self.assertEqual(resp.status_code, 200) |