9 lines
256 B
Python
9 lines
256 B
Python
|
|
import requests
|
||
|
|
from tests.conftest import BASE_URL
|
||
|
|
|
||
|
|
|
||
|
|
def test_404_renders_error_page(app_server):
|
||
|
|
r = requests.get(f"{BASE_URL}/this-page-does-not-exist-xyz")
|
||
|
|
assert r.status_code == 404
|
||
|
|
assert "404" in r.text or "not found" in r.text.lower()
|