From 95f58097c5a00243786e4a84f74f89d67f84adf8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Fri, 19 Apr 2019 18:25:40 +0100 Subject: Update Pipfile.lock and move home app tests --- pydis_site/apps/home/tests/test_app_basics.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pydis_site/apps/home/tests/test_app_basics.py (limited to 'pydis_site/apps/home/tests') 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')) -- cgit v1.2.3