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

Method test_unknown_user

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

656@pytest.mark.manager
657class TestAuthenticate:
658 async def test_unknown_user(
659 self,
660 create_oauth2_password_request_form: Callable[
661 [str, str], OAuth2PasswordRequestForm
662 ],
663 user_manager: UserManagerMock[UserModel],
664 ):
665 form = create_oauth2_password_request_form("lancelot@camelot.bt", "guinevere")
666 user = await user_manager.authenticate(form)
667 assert user is None
668
669 async def test_wrong_password(
670 self,

Callers

nothing calls this directly

Calls 2

authenticateMethod · 0.80

Tested by

no test coverage detected