diff options
author | 2020-09-22 20:51:00 +0300 | |
---|---|---|
committer | 2020-09-22 20:51:00 +0300 | |
commit | 128def50309353fc568f6c5354e65633076e8689 (patch) | |
tree | 03f8631f2fd55923902150e1525a3c8332111562 | |
parent | Include resources app URLs to home app URLs (diff) |
Create tests for resources app
-rw-r--r-- | pydis_site/apps/resources/tests/__init__.py | 0 | ||||
-rw-r--r-- | pydis_site/apps/resources/tests/test_views.py | 10 |
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) |