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

Method test_not_existing_user

tests/test_manager.py:483–495  ·  view source on GitHub ↗
(
        self, user_manager: UserManagerMock[UserModel], forgot_password_token
    )

Source from the content-addressed store, hash-verified

481 assert user_manager.on_after_reset_password.called is False
482
483 async def test_not_existing_user(
484 self, user_manager: UserManagerMock[UserModel], forgot_password_token
485 ):
486 with pytest.raises(UserNotExists):
487 await user_manager.reset_password(
488 forgot_password_token(
489 "d35d213e-f3d8-4f08-954a-7e0d1bea286f",
490 current_password_hash="old_password",
491 ),
492 "guinevere",
493 )
494 assert user_manager._update.called is False
495 assert user_manager.on_after_reset_password.called is False
496
497 async def test_already_used_token(
498 self,

Callers

nothing calls this directly

Calls 2

forgot_password_tokenFunction · 0.85
reset_passwordMethod · 0.80

Tested by

no test coverage detected