test_strict_login_no_data() — fastapi Function Reference
Architecture documentation for the test_strict_login_no_data() function in test_security_oauth2.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD ee1c6a1f_4105_34d9_dc6d_c4a0e7c5ca4c["test_strict_login_no_data()"] 7f052231_a8b6_745a_4286_d97e2324b661["test_security_oauth2.py"] ee1c6a1f_4105_34d9_dc6d_c4a0e7c5ca4c -->|defined in| 7f052231_a8b6_745a_4286_d97e2324b661 style ee1c6a1f_4105_34d9_dc6d_c4a0e7c5ca4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_security_oauth2.py lines 64–88
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.py.
Where is test_strict_login_no_data() defined?
test_strict_login_no_data() is defined in tests/test_security_oauth2.py at line 64.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free