test_override_with_sub_router_decorator_depends() — fastapi Function Reference
Architecture documentation for the test_override_with_sub_router_decorator_depends() function in test_dependency_overrides.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 8c0298c0_acd2_c80d_44f1_4c1e99e45ee8["test_override_with_sub_router_decorator_depends()"] 2221c738_ce6d_bcba_af9a_ada983702718["test_dependency_overrides.py"] 8c0298c0_acd2_c80d_44f1_4c1e99e45ee8 -->|defined in| 2221c738_ce6d_bcba_af9a_ada983702718 style 8c0298c0_acd2_c80d_44f1_4c1e99e45ee8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_dependency_overrides.py lines 350–365
def test_override_with_sub_router_decorator_depends():
app.dependency_overrides[common_parameters] = overrider_dependency_with_sub
response = client.get("/router-decorator-depends/")
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["query", "k"],
"msg": "Field required",
"input": None,
}
]
}
app.dependency_overrides = {}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_override_with_sub_router_decorator_depends() do?
test_override_with_sub_router_decorator_depends() is a function in the fastapi codebase, defined in tests/test_dependency_overrides.py.
Where is test_override_with_sub_router_decorator_depends() defined?
test_override_with_sub_router_decorator_depends() is defined in tests/test_dependency_overrides.py at line 350.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free