Home / Function/ test_login_incorrect_username() — fastapi Function Reference

test_login_incorrect_username() — fastapi Function Reference

Architecture documentation for the test_login_incorrect_username() function in test_tutorial003.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  315af633_8cf9_5492_fa2f_a3c69d44c041["test_login_incorrect_username()"]
  9ba0315d_cf11_da38_8176_486317d0cd54["test_tutorial003.py"]
  315af633_8cf9_5492_fa2f_a3c69d44c041 -->|defined in| 9ba0315d_cf11_da38_8176_486317d0cd54
  style 315af633_8cf9_5492_fa2f_a3c69d44c041 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_security/test_tutorial003.py lines 40–43

def test_login_incorrect_username(client: TestClient):
    response = client.post("/token", data={"username": "foo", "password": "secret"})
    assert response.status_code == 400, response.text
    assert response.json() == {"detail": "Incorrect username or password"}

Domain

Subdomains

Frequently Asked Questions

What does test_login_incorrect_username() do?
test_login_incorrect_username() is a function in the fastapi codebase, defined in tests/test_tutorial/test_security/test_tutorial003.py.
Where is test_login_incorrect_username() defined?
test_login_incorrect_username() is defined in tests/test_tutorial/test_security/test_tutorial003.py at line 40.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free