test_get_invalid_second_header_items() — fastapi Function Reference
Architecture documentation for the test_get_invalid_second_header_items() function in test_tutorial012.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 7c55751b_31ea_44d6_18cd_58f1104e993c["test_get_invalid_second_header_items()"] 58266310_4370_06bd_d15e_428d43dd0af1["test_tutorial012.py"] 7c55751b_31ea_44d6_18cd_58f1104e993c -->|defined in| 58266310_4370_06bd_d15e_428d43dd0af1 style 7c55751b_31ea_44d6_18cd_58f1104e993c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_dependencies/test_tutorial012.py lines 76–81
def test_get_invalid_second_header_items(client: TestClient):
response = client.get(
"/items/", 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_items() do?
test_get_invalid_second_header_items() is a function in the fastapi codebase, defined in tests/test_tutorial/test_dependencies/test_tutorial012.py.
Where is test_get_invalid_second_header_items() defined?
test_get_invalid_second_header_items() is defined in tests/test_tutorial/test_dependencies/test_tutorial012.py at line 76.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free