"""Cross-cutting negative-path tests. None of these mutate data. """ import pytest import requests from tests.integration.consts import api @pytest.mark.negative def test_unknown_route_not_found() -> None: """A multi-segment unmapped path returns 404. A deep, multi-segment path is used rather than a single unknown segment to minimise the chance of colliding with a real or future top-level route. """ response = requests.get(api.UNKNOWN_ROUTE, timeout=api.REQUEST_TIMEOUT) assert response.status_code == 404, response.url