test_openapi_schema() — fastapi Function Reference
Architecture documentation for the test_openapi_schema() function in test_tutorial006c.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e2998d6c_eef1_3e9e_1ed5_c84dbc97be07["test_openapi_schema()"] 1c51f585_325f_907f_705b_580e88336812["test_tutorial006c.py"] e2998d6c_eef1_3e9e_1ed5_c84dbc97be07 -->|defined in| 1c51f585_325f_907f_705b_580e88336812 style e2998d6c_eef1_3e9e_1ed5_c84dbc97be07 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_custom_response/test_tutorial006c.py lines 15–32
def test_openapi_schema():
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": {
"/pydantic": {
"get": {
"summary": "Redirect Pydantic",
"operationId": "redirect_pydantic_pydantic_get",
"responses": {"302": {"description": "Successful Response"}},
}
}
},
}
)
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_custom_response/test_tutorial006c.py.
Where is test_openapi_schema() defined?
test_openapi_schema() is defined in tests/test_tutorial/test_custom_response/test_tutorial006c.py at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free