Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_strict_login_no_grant_type (3.79 sec)

  1. tests/test_security_oauth2_optional.py

                    "type": "missing",
                    "loc": ["body", "password"],
                    "msg": "Field required",
                    "input": None,
                },
            ]
        }
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. tests/test_security_oauth2.py

                    "type": "missing",
                    "loc": ["body", "password"],
                    "msg": "Field required",
                    "input": None,
                },
            ]
        }
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_optional_description.py

                    "type": "missing",
                    "loc": ["body", "password"],
                    "msg": "Field required",
                    "input": None,
                },
            ]
        }
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top