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

Method test_user_inactive

tests/test_manager.py:413–418  ·  view source on GitHub ↗
(
        self, user_manager: UserManagerMock[UserModel], inactive_user: UserModel
    )

Source from the content-addressed store, hash-verified

411@pytest.mark.manager
412class TestForgotPassword:
413 async def test_user_inactive(
414 self, user_manager: UserManagerMock[UserModel], inactive_user: UserModel
415 ):
416 with pytest.raises(UserInactive):
417 await user_manager.forgot_password(inactive_user)
418 assert user_manager.on_after_forgot_password.called is False
419
420 async def test_user_active(
421 self, user_manager: UserManagerMock[UserModel], user: UserModel

Callers

nothing calls this directly

Calls 1

forgot_passwordMethod · 0.80

Tested by

no test coverage detected