Fix broken tests due to the missing time-freeze
@@ -66,6 +66,7 @@ async def _():
jwt_auth_id=1,
)
+ with time_machine.travel("2021-10-10 15:00:00Z", tick=False):
token = jwt.encode(
{
"jti": user.get_reset_password_jwt_id(),
@@ -126,6 +127,7 @@ async def _():
jwt_auth_id=1,
)
+ with time_machine.travel("2021-10-10 15:00:00Z", tick=False):
token = jwt.encode(
{
"jti": "reset-password:20:1",
