test_get_invalid_second_header_users() — fastapi Function Reference
Architecture documentation for the test_get_invalid_second_header_users() function in test_tutorial012.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 78906211_b142_db8f_1009_e5878a1e3811["test_get_invalid_second_header_users()"] 58266310_4370_06bd_d15e_428d43dd0af1["test_tutorial012.py"] 78906211_b142_db8f_1009_e5878a1e3811 -->|defined in| 58266310_4370_06bd_d15e_428d43dd0af1 style 78906211_b142_db8f_1009_e5878a1e3811 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_dependencies/test_tutorial012.py lines 84–89
def test_get_invalid_second_header_users(client: TestClient):
response = client.get(
"/users/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
)
assert response.status_code == 400, response.text
assert response.json() == {"detail": "X-Key header invalid"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_invalid_second_header_users() do?
test_get_invalid_second_header_users() is a function in the fastapi codebase, defined in tests/test_tutorial/test_dependencies/test_tutorial012.py.
Where is test_get_invalid_second_header_users() defined?
test_get_invalid_second_header_users() is defined in tests/test_tutorial/test_dependencies/test_tutorial012.py at line 84.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free