aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-22 20:51:00 +0300
committerGravatar ks129 <[email protected]>2020-09-22 20:51:00 +0300
commit128def50309353fc568f6c5354e65633076e8689 (patch)
tree03f8631f2fd55923902150e1525a3c8332111562
parentInclude resources app URLs to home app URLs (diff)
Create tests for resources app
-rw-r--r--pydis_site/apps/resources/tests/__init__.py0
-rw-r--r--pydis_site/apps/resources/tests/test_views.py10
2 files changed, 10 insertions, 0 deletions
diff --git a/pydis_site/apps/resources/tests/__init__.py b/pydis_site/apps/resources/tests/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/pydis_site/apps/resources/tests/__init__.py
diff --git a/pydis_site/apps/resources/tests/test_views.py b/pydis_site/apps/resources/tests/test_views.py
new file mode 100644
index 00000000..b131b2a6
--- /dev/null
+++ b/pydis_site/apps/resources/tests/test_views.py
@@ -0,0 +1,10 @@
+from django.test import TestCase
+from django_hosts import reverse
+
+
+class TestResourcesView(TestCase):
+ def test_resources_index_200(self):
+ """Check does index of resources app return 200 HTTP response."""
+ url = reverse("resources:resources")
+ response = self.client.get(url)
+ self.assertEqual(response.status_code, 200)