- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_response_without_depends (0.47 seconds)
-
tests/test_response_dependency.py
client = TestClient(app) resp = client.get("/") assert resp.status_code == 200 assert resp.json() == {"status": "ok"} assert resp.headers.get("X-Custom") == "modified" def test_response_without_depends(): """Regular Response injection should still work.""" app = FastAPI() @app.get("/") def endpoint(response: Response): response.headers["X-Direct"] = "set"Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 18:23:16 GMT 2026 - 5.2K bytes - Click Count (0)