diff options
| author | 2020-10-30 17:43:13 +0200 | |
|---|---|---|
| committer | 2020-10-30 17:43:13 +0200 | |
| commit | 3fa3854eb192466ca59acb577bfe135b53c2da11 (patch) | |
| tree | af5aa98d8d521f21f25c45528c89941ac23e77aa /pydis_site/apps/resources/tests | |
| parent | Cover fetching article GitHub information with tests (diff) | |
| parent | Merge pull request #395 from ks129/resources-home (diff) | |
Merge remote-tracking branch 'up/dewikification' into guides-app
Diffstat (limited to 'pydis_site/apps/resources/tests')
| -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..497e9bfe --- /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:index") + response = self.client.get(url) + self.assertEqual(response.status_code, 200) |