aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/main/tests.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-04-16 14:16:38 +0200
committerGravatar Leon Sandøy <[email protected]>2019-04-16 14:16:38 +0200
commitda7a5701f1dae277aab4c4947fe7d23fe02987bd (patch)
treef8f8c683664a02a9fd1860c8bb99b6645e74a651 /pydis_site/apps/main/tests.py
parentrefactoring slightly to use a class-based view, changing home to main. Ready ... (diff)
parentMerge pull request #207 from python-discord/api/split-models (diff)
merging in changes from the main branch
Diffstat (limited to 'pydis_site/apps/main/tests.py')
-rw-r--r--pydis_site/apps/main/tests.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pydis_site/apps/main/tests.py b/pydis_site/apps/main/tests.py
index 54fac6e8..733ddaa3 100644
--- a/pydis_site/apps/main/tests.py
+++ b/pydis_site/apps/main/tests.py
@@ -1,9 +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('index')
+ 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'))