Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_legitimate_root_path_still_appears (0.14 seconds)

  1. tests/test_openapi_cache_root_path.py

        for prefix in ["/path-a", "/path-b", "/path-c"]:
            assert prefix not in servers, (
                f"root_path '{prefix}' leaked into clean request: {servers}"
            )
    
    
    def test_legitimate_root_path_still_appears():
        app = FastAPI()
    
        @app.get("/")
        def read_root():  # pragma: no cover
            return {"ok": True}
    
        client = TestClient(app, root_path="/api/v1")
    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)
Back to Top