Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for incorrectos (0.05 sec)

  1. tests/test_tutorial/test_security/test_tutorial003.py

    
    def test_login_incorrect_password(client: TestClient):
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username(client: TestClient):
        response = client.post("/token", data={"username": "foo", "password": "secret"})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_optional.py

                    "input": None,
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        argnames=["grant_type"],
        argvalues=[
            pytest.param("incorrect", id="incorrect value"),
            pytest.param("passwordblah", id="password with suffix"),
            pytest.param("blahpassword", id="password with prefix"),
        ],
    )
    def test_strict_login_incorrect_grant_type(grant_type: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial005.py

    def test_login_incorrect_password(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username(mod: ModuleType):
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. tests/test_security_oauth2.py

                    "input": None,
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        argnames=["grant_type"],
        argvalues=[
            pytest.param("incorrect", id="incorrect value"),
            pytest.param("passwordblah", id="password with suffix"),
            pytest.param("blahpassword", id="password with prefix"),
        ],
    )
    def test_strict_login_incorrect_grant_type(grant_type: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. tests/test_security_oauth2_optional_description.py

                    "input": None,
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        argnames=["grant_type"],
        argvalues=[
            pytest.param("incorrect", id="incorrect value"),
            pytest.param("passwordblah", id="password with suffix"),
            pytest.param("blahpassword", id="password with prefix"),
        ],
    )
    def test_strict_login_incorrect_grant_type(grant_type: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    * ✏ Re-word to clarify test client in `docs/en/docs/tutorial/testing.md`. PR [#3382](https://github.com/tiangolo/fastapi/pull/3382) by [@Bharat123rox](https://github.com/Bharat123rox).
    * 📝  Fix incorrect highlighted code. PR [#3325](https://github.com/tiangolo/fastapi/pull/3325) by [@paxcodes](https://github.com/paxcodes).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top