aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-04-02 17:47:42 +0800
committerGravatar kosayoda <[email protected]>2021-04-02 17:47:42 +0800
commitbb8a57a00835ffae8382f4360e0f55888bbe03b0 (patch)
treeba1817a540189d098ce856aa876167640a714b13 /pydis_site/apps/content/tests/helpers.py
parentFix overriden PAGES_PATH in settings.py. (diff)
Use metadata titles in Sub-Articles dropdown.
This allows us to keep filenames (thus URLs) as concise as possible, while having a more descriptive entry in the Sub-Articles dropdown for category pages.
Diffstat (limited to 'pydis_site/apps/content/tests/helpers.py')
-rw-r--r--pydis_site/apps/content/tests/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/tests/helpers.py b/pydis_site/apps/content/tests/helpers.py
index 202dee42..29140375 100644
--- a/pydis_site/apps/content/tests/helpers.py
+++ b/pydis_site/apps/content/tests/helpers.py
@@ -87,5 +87,5 @@ class MockPagesTestCase(TestCase):
# See: https://jmcgeheeiv.github.io/pyfakefs/release/usage.html#os-temporary-directories
self.fs.create_file("tmp/_info.yml", contents=CATEGORY_INFO)
self.fs.create_file("tmp.md", contents=MARKDOWN_WITH_METADATA)
- self.fs.create_file("tmp/category/_info.yml", contents=MARKDOWN_WITH_METADATA)
+ self.fs.create_file("tmp/category/_info.yml", contents=CATEGORY_INFO)
self.fs.create_dir("tmp/category/subcategory_without_info")