fix(backend): the license-expiring test used a fixed end date that became the past on 2026-11-20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,8 @@ def test_message_in_the_readers_language(client, db, make_user, login):
|
||||
|
||||
def test_license_expiring_steps(client, db, people):
|
||||
owner = people["owner"]
|
||||
end = "2026-11-20T00:00:00+00:00"
|
||||
# a date still ahead (the fixed "2026-11-20" became the past on that very day and the test began failing)
|
||||
end = (datetime.now(timezone.utc) + timedelta(days=30)).replace(microsecond=0).isoformat()
|
||||
check_license_expiry(end, 20, True, db)
|
||||
assert keys(client, owner[1]) == []
|
||||
check_license_expiry(end, 12, True, db)
|
||||
|
||||
Reference in New Issue
Block a user