MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / test_wrong_password

Method test_wrong_password

tests/test_manager.py:669–678  ·  view source on GitHub ↗
(
        self,
        create_oauth2_password_request_form: Callable[
            [str, str], OAuth2PasswordRequestForm
        ],
        user_manager: UserManagerMock[UserModel],
    )

Source from the content-addressed store, hash-verified

667 assert user is None
668
669 async def test_wrong_password(
670 self,
671 create_oauth2_password_request_form: Callable[
672 [str, str], OAuth2PasswordRequestForm
673 ],
674 user_manager: UserManagerMock[UserModel],
675 ):
676 form = create_oauth2_password_request_form("king.arthur@camelot.bt", "percival")
677 user = await user_manager.authenticate(form)
678 assert user is None
679
680 async def test_valid_credentials(
681 self,

Callers

nothing calls this directly

Calls 2

authenticateMethod · 0.80

Tested by

no test coverage detected