Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_disable_openapi (0.18 sec)

  1. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

    def get_client() -> TestClient:
        from docs_src.conditional_openapi import tutorial001_py39
    
        importlib.reload(tutorial001_py39)
    
        client = TestClient(tutorial001_py39.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")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top