Split the monolithic test directory into three tiers (unit, api, e2e) with a path-mirroring directory structure. Added corresponding Makefile targets (test-unit, test-api, test-e2e) and updated all documentation references (CLAUDE.md, README.md, testing-cicd.html, testing-framework.html, testing-make.html) to reflect the new layout and naming conventions.
11 lines
287 B
Python
11 lines
287 B
Python
# retoor <retoor@molodetz.nl>
|
|
|
|
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()
|