diff options
author | 2021-04-01 20:32:24 +0800 | |
---|---|---|
committer | 2021-04-01 20:32:24 +0800 | |
commit | 4039266c5083545b498b5ef751a98961aa5ba7e1 (patch) | |
tree | 511e8d41f67d33616b4e423ee0a1742fae7ddea8 /pydis_site/apps/content/tests | |
parent | Update 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.py | 2 |
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.""" |