test_disable_openapi() — fastapi Function Reference
Architecture documentation for the test_disable_openapi() function in test_tutorial001.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e054d464_b231_24a9_a866_04ee5d08fedc["test_disable_openapi()"] 306174d9_aa86_c300_fab5_8e766f077ecb["test_tutorial001.py"] e054d464_b231_24a9_a866_04ee5d08fedc -->|defined in| 306174d9_aa86_c300_fab5_8e766f077ecb e696bba6_81f5_aac6_e4ec_43e97d5c128e["get_client()"] e054d464_b231_24a9_a866_04ee5d08fedc -->|calls| e696bba6_81f5_aac6_e4ec_43e97d5c128e style e054d464_b231_24a9_a866_04ee5d08fedc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py lines 16–25
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")
assert response.status_code == 404, response.text
response = client.get("/docs")
assert response.status_code == 404, response.text
response = client.get("/redoc")
assert response.status_code == 404, response.text
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_disable_openapi() do?
test_disable_openapi() is a function in the fastapi codebase, defined in tests/test_tutorial/test_conditional_openapi/test_tutorial001.py.
Where is test_disable_openapi() defined?
test_disable_openapi() is defined in tests/test_tutorial/test_conditional_openapi/test_tutorial001.py at line 16.
What does test_disable_openapi() call?
test_disable_openapi() calls 1 function(s): get_client.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free