test_openapi_schema() — fastapi Function Reference
Architecture documentation for the test_openapi_schema() function in test_app01.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD ce33555a_d7b0_174d_4cd6_4e6be0b5fefb["test_openapi_schema()"] b6d4ce17_3c8b_e696_67b2_a4ae4858a6c9["test_app01.py"] ce33555a_d7b0_174d_4cd6_4e6be0b5fefb -->|defined in| b6d4ce17_3c8b_e696_67b2_a4ae4858a6c9 style ce33555a_d7b0_174d_4cd6_4e6be0b5fefb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_settings/test_app01.py lines 59–81
def test_openapi_schema(client: TestClient):
response = client.get("/openapi.json")
assert response.status_code == 200, response.text
assert response.json() == snapshot(
{
"openapi": "3.1.0",
"info": {"title": "FastAPI", "version": "0.1.0"},
"paths": {
"/info": {
"get": {
"operationId": "info_info_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {"application/json": {"schema": {}}},
}
},
"summary": "Info",
}
}
},
}
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_openapi_schema() do?
test_openapi_schema() is a function in the fastapi codebase, defined in tests/test_tutorial/test_settings/test_app01.py.
Where is test_openapi_schema() defined?
test_openapi_schema() is defined in tests/test_tutorial/test_settings/test_app01.py at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free