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

Method test_invalid_token

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

Source from the content-addressed store, hash-verified

444@pytest.mark.manager
445class TestResetPassword:
446 async def test_invalid_token(self, user_manager: UserManagerMock[UserModel]):
447 with pytest.raises(InvalidResetPasswordToken):
448 await user_manager.reset_password("foo", "guinevere")
449 assert user_manager._update.called is False
450 assert user_manager.on_after_reset_password.called is False
451
452 async def test_token_expired(
453 self,

Callers

nothing calls this directly

Calls 1

reset_passwordMethod · 0.80

Tested by

no test coverage detected