- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_get_root (0.26 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_openapi_route_extensions.py
from inline_snapshot import snapshot app = FastAPI() @app.get("/", openapi_extra={"x-custom-extension": "value"}) def route_with_extras(): return {} client = TestClient(app) def test_get_route(): response = client.get("/") assert response.status_code == 200, response.text assert response.json() == {} def test_openapi_schema(): response = client.get("/openapi.json")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 1.2K bytes - Click Count (0) -
tests/test_openapi_query_parameter_extension.py
"in": "query", }, ] }, ) def route_with_extra_query_parameters(standard_query_param: int | None = 50): return {} client = TestClient(app) def test_get_route(): response = client.get("/") assert response.status_code == 200, response.text assert response.json() == {} def test_openapi(): response = client.get("/openapi.json")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.8K bytes - Click Count (0)