test_token_inactive_user() — fastapi Function Reference
Architecture documentation for the test_token_inactive_user() function in test_tutorial005.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 8ba55d2f_621e_0ebc_90a9_4c61a0e76e69["test_token_inactive_user()"] 132df24a_932a_c5a5_9fcb_bb38e95d696f["test_tutorial005.py"] 8ba55d2f_621e_0ebc_90a9_4c61a0e76e69 -->|defined in| 132df24a_932a_c5a5_9fcb_bb38e95d696f 73cf2ed9_002b_77bd_5a4f_5029b98b7156["get_access_token()"] 8ba55d2f_621e_0ebc_90a9_4c61a0e76e69 -->|calls| 73cf2ed9_002b_77bd_5a4f_5029b98b7156 style 8ba55d2f_621e_0ebc_90a9_4c61a0e76e69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_security/test_tutorial005.py lines 173–183
def test_token_inactive_user(mod: ModuleType):
client = TestClient(mod.app)
access_token = get_access_token(
username="alice", password="secretalice", scope="me", client=client
)
response = client.get(
"/users/me", headers={"Authorization": f"Bearer {access_token}"}
)
assert response.status_code == 400, response.text
assert response.json() == {"detail": "Inactive user"}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_token_inactive_user() do?
test_token_inactive_user() is a function in the fastapi codebase, defined in tests/test_tutorial/test_security/test_tutorial005.py.
Where is test_token_inactive_user() defined?
test_token_inactive_user() is defined in tests/test_tutorial/test_security/test_tutorial005.py at line 173.
What does test_token_inactive_user() call?
test_token_inactive_user() 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