test_read_items() — fastapi Function Reference
Architecture documentation for the test_read_items() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 1d997ec3_01e4_6d9b_12ff_54521751ea2f["test_read_items()"] 99a6e52c_39c3_5825_2899_8b0fa980bff4["test_tutorial004.py"] 1d997ec3_01e4_6d9b_12ff_54521751ea2f -->|defined in| 99a6e52c_39c3_5825_2899_8b0fa980bff4 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab["get_access_token()"] 1d997ec3_01e4_6d9b_12ff_54521751ea2f -->|calls| 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab style 1d997ec3_01e4_6d9b_12ff_54521751ea2f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_security/test_tutorial004.py lines 178–185
def test_read_items(mod: ModuleType):
client = TestClient(mod.app)
access_token = get_access_token(client=client)
response = client.get(
"/users/me/items/", headers={"Authorization": f"Bearer {access_token}"}
)
assert response.status_code == 200, response.text
assert response.json() == [{"item_id": "Foo", "owner": "johndoe"}]
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_read_items() do?
test_read_items() is a function in the fastapi codebase, defined in tests/test_tutorial/test_security/test_tutorial004.py.
Where is test_read_items() defined?
test_read_items() is defined in tests/test_tutorial/test_security/test_tutorial004.py at line 178.
What does test_read_items() call?
test_read_items() calls 1 function(s): get_access_token.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free