aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/tests
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-04-01 20:32:24 +0800
committerGravatar kosayoda <[email protected]>2021-04-01 20:32:24 +0800
commit4039266c5083545b498b5ef751a98961aa5ba7e1 (patch)
tree511e8d41f67d33616b4e423ee0a1742fae7ddea8 /pydis_site/apps/content/tests
parentUpdate misleading documentation. (diff)
Fix overriden PAGES_PATH in settings.py.
This was causing mysterious 404s because while migrating a feature to dewikification, the same variable would be placed in the settings file.
Diffstat (limited to 'pydis_site/apps/content/tests')
-rw-r--r--pydis_site/apps/content/tests/test_views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/tests/test_views.py b/pydis_site/apps/content/tests/test_views.py
index cd0d0bf7..36d771a1 100644
--- a/pydis_site/apps/content/tests/test_views.py
+++ b/pydis_site/apps/content/tests/test_views.py
@@ -33,7 +33,7 @@ def patch_dispatch_attributes(view: PageOrCategoryView, location: str) -> None:
view.page_path = view.full_location.with_suffix(".md")
-@override_settings(PAGES_PATH=BASE_PATH)
+@override_settings(CONTENT_PAGES_PATH=BASE_PATH)
class PageOrCategoryViewTests(MockPagesTestCase, SimpleTestCase, TestCase):
"""Tests for the PageOrCategoryView class."""