Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_security_oauth2_optional.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. tests/test_security_oauth2.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_optional_description.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_strict_login_no_grant_type():
        response = client.post("/login", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top