Further basic integration testing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
from http import HTTPStatus
|
||||
|
||||
def AssertNotFound(client, url):
|
||||
"""Helper to quickly test for urls that should return a 404 (NOT FOUND) error"""
|
||||
response = client.get(url)
|
||||
assert response.status_code == HTTPStatus.NOT_FOUND, f"Response content: {response.content}"
|
||||
Reference in New Issue
Block a user