diff options
| author | 2020-10-28 18:14:54 +0000 | |
|---|---|---|
| committer | 2020-10-28 18:14:54 +0000 | |
| commit | 33e05594f66e1812cda687f26f5297db42505a0d (patch) | |
| tree | 34557043024a68cf0312d3193303e8d4f495001a /pydis_site/apps/resources/tests | |
| parent | Merge pull request #407 from python-discord/remove_oauth (diff) | |
| parent | Change resources home name from resources -> index (diff) | |
Merge pull request #395 from ks129/resources-home
Dewikification - Create app for resources + index page of resources
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)  |