test_level1_override() — fastapi Function Reference
Architecture documentation for the test_level1_override() function in test_include_router_defaults_overrides.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD be5223e5_4a51_88ec_4ec4_1e60d5d5af35["test_level1_override()"] d87662b2_2485_5c84_66f0_3b294a501db6["test_include_router_defaults_overrides.py"] be5223e5_4a51_88ec_4ec4_1e60d5d5af35 -->|defined in| d87662b2_2485_5c84_66f0_3b294a501db6 style be5223e5_4a51_88ec_4ec4_1e60d5d5af35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_include_router_defaults_overrides.py lines 347–356
def test_level1_override():
response = client.get("/override1?level1=foo")
assert response.json() == "foo"
assert response.headers["content-type"] == "application/x-level-1"
assert "x-level0" in response.headers
assert "x-level1" in response.headers
assert "x-level2" not in response.headers
assert "x-level3" not in response.headers
assert "x-level4" not in response.headers
assert "x-level5" not in response.headers
Domain
Subdomains
Source
Frequently Asked Questions
What does test_level1_override() do?
test_level1_override() is a function in the fastapi codebase, defined in tests/test_include_router_defaults_overrides.py.
Where is test_level1_override() defined?
test_level1_override() is defined in tests/test_include_router_defaults_overrides.py at line 347.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free