- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_disable_openapi (0.17 seconds)
-
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
def get_client() -> TestClient: from docs_src.conditional_openapi import tutorial001_py310 importlib.reload(tutorial001_py310) client = TestClient(tutorial001_py310.app) return client def test_disable_openapi(monkeypatch): monkeypatch.setenv("OPENAPI_URL", "") # Load the client after setting the env var client = get_client() response = client.get("/openapi.json")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.8K bytes - Click Count (0)