aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-21 20:39:30 +0300
committerGravatar ks129 <[email protected]>2020-09-21 20:39:30 +0300
commit623fc175a1ad9602ffcc8ecd8c12be602e4e5eef (patch)
tree0f384a6fdea38ffe81fbfe6d371975be4ecd5619
parentCreate tests for `get_guide` function (diff)
Fix error that came in when moved path to constant
-rw-r--r--pydis_site/apps/guides/tests/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/guides/tests/test_utils.py b/pydis_site/apps/guides/tests/test_utils.py
index 4faf83ae..e7448be6 100644
--- a/pydis_site/apps/guides/tests/test_utils.py
+++ b/pydis_site/apps/guides/tests/test_utils.py
@@ -59,7 +59,7 @@ class TestGetGuides(TestCase):
for case in ["test", "test2"]:
with self.subTest(guide=case):
md = Markdown(extensions=['meta'])
- with open(os.path.join(path, f"{case}.md")) as f:
+ with open(os.path.join(BASE_PATH, f"{case}.md")) as f:
md.convert(f.read())
self.assertIn(case, result)