tests: fix token expiration test to work on Decembre 31st
This commit is contained in:
parent
645ab45827
commit
b1deb85bfc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue