Home / Function/ test_strict_login_correct_correct_grant_type() — fastapi Function Reference

test_strict_login_correct_correct_grant_type() — fastapi Function Reference

Architecture documentation for the test_strict_login_correct_correct_grant_type() function in test_security_oauth2_optional_description.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  74f644e1_fee9_5910_bf1c_899acd8f27f3["test_strict_login_correct_correct_grant_type()"]
  7e784b87_9cdf_528d_4ae2_09349aaf6e83["test_security_oauth2_optional_description.py"]
  74f644e1_fee9_5910_bf1c_899acd8f27f3 -->|defined in| 7e784b87_9cdf_528d_4ae2_09349aaf6e83
  style 74f644e1_fee9_5910_bf1c_899acd8f27f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_security_oauth2_optional_description.py lines 137–150

def test_strict_login_correct_correct_grant_type():
    response = client.post(
        "/login",
        data={"username": "johndoe", "password": "secret", "grant_type": "password"},
    )
    assert response.status_code == 200, response.text
    assert response.json() == {
        "grant_type": "password",
        "username": "johndoe",
        "password": "secret",
        "scopes": [],
        "client_id": None,
        "client_secret": None,
    }

Domain

Subdomains

Frequently Asked Questions

What does test_strict_login_correct_correct_grant_type() do?
test_strict_login_correct_correct_grant_type() is a function in the fastapi codebase, defined in tests/test_security_oauth2_optional_description.py.
Where is test_strict_login_correct_correct_grant_type() defined?
test_strict_login_correct_correct_grant_type() is defined in tests/test_security_oauth2_optional_description.py at line 137.

Analyze Your Own Codebase

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

Try Supermodel Free