diff options
author | 2019-04-19 18:25:40 +0100 | |
---|---|---|
committer | 2019-04-19 18:25:40 +0100 | |
commit | 95f58097c5a00243786e4a84f74f89d67f84adf8 (patch) | |
tree | 15982bf0af6e04d04ce76bb13ac9fa9006c6b64b /pydis_site/apps/home/tests | |
parent | Merge branch 'django' into django+200/wiki (diff) |
Update Pipfile.lock and move home app tests
Diffstat (limited to 'pydis_site/apps/home/tests')
-rw-r--r-- | pydis_site/apps/home/tests/test_app_basics.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pydis_site/apps/home/tests/test_app_basics.py b/pydis_site/apps/home/tests/test_app_basics.py new file mode 100644 index 00000000..733ddaa3 --- /dev/null +++ b/pydis_site/apps/home/tests/test_app_basics.py @@ -0,0 +1,16 @@ +from django.test import TestCase +from django_hosts.resolvers import reverse + +from pydis_site.apps.home.templatetags import extra_filters + + +class TestIndexReturns200(TestCase): + def test_index_returns_200(self): + url = reverse('home.index') + resp = self.client.get(url) + self.assertEqual(resp.status_code, 200) + + +class TestExtraFilterTemplateTags(TestCase): + def test_starts_with(self): + self.assertTrue(extra_filters.starts_with('foo', 'f')) |