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

Method test_valid_credentials

tests/test_manager.py:680–692  ·  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

678 assert user is None
679
680 async def test_valid_credentials(
681 self,
682 create_oauth2_password_request_form: Callable[
683 [str, str], OAuth2PasswordRequestForm
684 ],
685 user_manager: UserManagerMock[UserModel],
686 ):
687 form = create_oauth2_password_request_form(
688 "king.arthur@camelot.bt", "guinevere"
689 )
690 user = await user_manager.authenticate(form)
691 assert user is not None
692 assert user.email == "king.arthur@camelot.bt"
693
694 async def test_upgrade_password_hash(
695 self,

Callers

nothing calls this directly

Calls 2

authenticateMethod · 0.80

Tested by

no test coverage detected