MCPcopy
hub / github.com/encode/starlette / test_400

Function test_400

tests/test_applications.py:218–221  ·  view source on GitHub ↗
(client: TestClient)

Source from the content-addressed store, hash-verified

216
217
218def test_400(client: TestClient) -> None:
219 response = client.get("/404")
220 assert response.status_code == 404
221 assert response.json() == {"detail": "Not Found"}
222
223
224def test_405(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected