- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for route_with_extras (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_openapi_route_extensions.py
from fastapi import FastAPI from fastapi.testclient import TestClient 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() == {}
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)