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