- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_use_empty (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_empty_router.py
app = FastAPI() router = APIRouter() @router.get("") def get_empty(): return ["OK"] app.include_router(router, prefix="/prefix") client = TestClient(app) def test_use_empty(): with client: response = client.get("/prefix") assert response.status_code == 200, response.text assert response.json() == ["OK"] response = client.get("/prefix/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Jun 11 22:37:34 GMT 2023 - 805 bytes - Click Count (1)