diff options
| author | 2020-10-28 20:18:09 +0200 | |
|---|---|---|
| committer | 2020-10-28 20:18:09 +0200 | |
| commit | 6e5976ba980aa4b52d8649b077c8ce717277b8f6 (patch) | |
| tree | 8bac27bce223ef6ba7e5d29f91aca64e30843e3b /pydis_site/apps/resources/tests | |
| parent | Create Summer Code Jam 2020 rules page (diff) | |
| parent | Merge pull request #395 from ks129/resources-home (diff) | |
Merge branch 'dewikification' into events-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) |