mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Custom 404 for Page
This commit is contained in:
1 parent
30e76a5e39
commit
8819abe27c
9 files changed
+164
-156
No files matched your search
@@ -319,9 +319,8 @@ class TestPageHandling(TestCase):
|
||||
def test_access_page_not_found(self):
|
||||
"""Should not display a page correctly."""
|
||||
response = self.client.get(reverse("core:page", kwargs={"page_name": "swagg"}))
|
||||
assert response.status_code == 200
|
||||
html = response.text
|
||||
self.assertIn('<a href="/page/create/?page=swagg">', html)
|
||||
assert response.status_code == 404
|
||||
assert '<a href="/page/create/?page=swagg">' in response.text
|
||||
|
||||
def test_create_page_markdown_safe(self):
|
||||
"""Should format the markdown and escape html correctly."""
|
||||
|
||||
Reference in new issue
Block a user