test_strict_login_correct_data() — fastapi Function Reference
Architecture documentation for the test_strict_login_correct_data() function in test_security_oauth2_optional.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5455765e_07bf_d555_33a8_53ac99896250["test_strict_login_correct_data()"] efcf9068_9c64_9327_7595_bfad37430bf7["test_security_oauth2_optional.py"] 5455765e_07bf_d555_33a8_53ac99896250 -->|defined in| efcf9068_9c64_9327_7595_bfad37430bf7 style 5455765e_07bf_d555_33a8_53ac99896250 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_security_oauth2_optional.py lines 136–149
def test_strict_login_correct_data():
response = client.post(
"/login",
data={"username": "johndoe", "password": "secret", "grant_type": "password"},
)
assert response.status_code == 200
assert response.json() == {
"grant_type": "password",
"username": "johndoe",
"password": "secret",
"scopes": [],
"client_id": None,
"client_secret": None,
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_strict_login_correct_data() do?
test_strict_login_correct_data() is a function in the fastapi codebase, defined in tests/test_security_oauth2_optional.py.
Where is test_strict_login_correct_data() defined?
test_strict_login_correct_data() is defined in tests/test_security_oauth2_optional.py at line 136.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free