Skip to content

Commit 682f897

Browse files
committed
Fix test
1 parent 22338de commit 682f897

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

democrasite/users/tests/test_templates.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,7 @@ def test_404_without_message(self, rf: RequestFactory):
9090
response = page_not_found(request, exception=Exception(""))
9191

9292
assert response.status_code == HTTPStatus.NOT_FOUND
93-
assert b"This is not the page you were looking for." in response.content
94-
95-
def test_404_with_message(self, rf: RequestFactory):
96-
request = rf.get("/fake-url/")
97-
98-
response = page_not_found(request, exception=Exception("Test message"))
99-
100-
assert response.status_code == HTTPStatus.NOT_FOUND
101-
assert b"Test message" in response.content
93+
assert b"This page does not exist." in response.content
10294

10395
def test_500(self, rf: RequestFactory):
10496
request = rf.get("/fake-url/")

0 commit comments

Comments
 (0)