tests: fix token expiration test to work on Decembre 31st

This commit is contained in:
Frédéric Péters 2022-12-31 10:42:34 +01:00
parent 645ab45827
commit b1deb85bfc
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def test_migrate_to_sql(pub):
sql_token = get_publisher().token_class.get(token.id)
assert sql_token.id == token.id
assert sql_token.context == token.context
assert sql_token.expiration.year == now().year
assert (sql_token.expiration - now()).total_seconds() < 86400
def test_expiration(pub):