- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_request_with_depends_annotated (0.34 seconds)
-
tests/test_response_dependency.py
assert resp.status_code == 200 assert resp.json() == {"status": "ok"} assert resp.headers.get("X-Custom") == "modified" # Tests for Request type hint with Depends def test_request_with_depends_annotated(): """Request type hint should work in dependency chain.""" app = FastAPI() def extract_request_info(request: Request) -> dict: return { "path": request.url.path,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)