diff options
| author | 2023-05-07 16:00:28 +0100 | |
|---|---|---|
| committer | 2023-05-07 16:00:28 +0100 | |
| commit | 804ef7543843786a82a0a42aaf5ada818dab3f26 (patch) | |
| tree | d9497896da7fb1fb042741a764df77c1c694755d /pydis_site/apps/home/tests | |
| parent | update forgotten mentions of sir-lancebot-commands channel (diff) | |
| parent | Merge pull request #949 from python-discord/hedyhli-edit-on-github (diff) | |
Merge branch 'main' into update-sir-lancebot-contrib-guide
Diffstat (limited to 'pydis_site/apps/home/tests')
| -rw-r--r-- | pydis_site/apps/home/tests/test_views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pydis_site/apps/home/tests/test_views.py b/pydis_site/apps/home/tests/test_views.py index b1215df4..379b984e 100644 --- a/pydis_site/apps/home/tests/test_views.py +++ b/pydis_site/apps/home/tests/test_views.py @@ -1,3 +1,5 @@ +from unittest import mock + from django.test import TestCase from django.urls import reverse @@ -6,5 +8,6 @@ class TestIndexReturns200(TestCase): def test_index_returns_200(self): """Check that the index page returns a HTTP 200 response.""" url = reverse('home:home') - resp = self.client.get(url) + with mock.patch("pydis_site.apps.home.views.HomeView._get_api_data", autospec=True): + resp = self.client.get(url) self.assertEqual(resp.status_code, 200) |