- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_multiple_different_root_paths_do_not_accumulate (0.15 seconds)
-
tests/test_openapi_cache_root_path.py
response2 = clean_client.get("/openapi.json") data2 = response2.json() servers = [s.get("url") for s in data2.get("servers", [])] assert "/evil-api" not in servers def test_multiple_different_root_paths_do_not_accumulate(): app = FastAPI() @app.get("/") def read_root(): # pragma: no cover return {"ok": True} for prefix in ["/path-a", "/path-b", "/path-c"]:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 2.3K bytes - Click Count (0)