test_strict_login_no_data() — fastapi Function Reference
Architecture documentation for the test_strict_login_no_data() function in test_security_oauth2_optional.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 4a479987_13ce_1d60_3b39_707f238472df["test_strict_login_no_data()"] efcf9068_9c64_9327_7595_bfad37430bf7["test_security_oauth2_optional.py"] 4a479987_13ce_1d60_3b39_707f238472df -->|defined in| efcf9068_9c64_9327_7595_bfad37430bf7 style 4a479987_13ce_1d60_3b39_707f238472df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_security_oauth2_optional.py lines 67–91
def test_strict_login_no_data():
response = client.post("/login")
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["body", "grant_type"],
"msg": "Field required",
"input": None,
},
{
"type": "missing",
"loc": ["body", "username"],
"msg": "Field required",
"input": None,
},
{
"type": "missing",
"loc": ["body", "password"],
"msg": "Field required",
"input": None,
},
]
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_strict_login_no_data() do?
test_strict_login_no_data() is a function in the fastapi codebase, defined in tests/test_security_oauth2_optional.py.
Where is test_strict_login_no_data() defined?
test_strict_login_no_data() is defined in tests/test_security_oauth2_optional.py at line 67.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free