test_override_data() — fastapi Function Reference
Architecture documentation for the test_override_data() function in test_dependency_security_overrides.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD f13fc4d1_effb_daa9_377a_322123a0912b["test_override_data()"] 0c5ff19d_a1ae_2482_c1a8_a702de2616cf["test_dependency_security_overrides.py"] f13fc4d1_effb_daa9_377a_322123a0912b -->|defined in| 0c5ff19d_a1ae_2482_c1a8_a702de2616cf style f13fc4d1_effb_daa9_377a_322123a0912b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_dependency_security_overrides.py lines 44–52
def test_override_data():
app.dependency_overrides[get_data] = get_data_override
response = client.get("/user")
assert response.json() == {
"user": "john",
"scopes": ["foo", "bar"],
"data": [3, 4, 5],
}
app.dependency_overrides = {}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_override_data() do?
test_override_data() is a function in the fastapi codebase, defined in tests/test_dependency_security_overrides.py.
Where is test_override_data() defined?
test_override_data() is defined in tests/test_dependency_security_overrides.py at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free