diff --git a/local_backend/tests/test_notifications.py b/local_backend/tests/test_notifications.py index e76bcf6..ff9ee19 100644 --- a/local_backend/tests/test_notifications.py +++ b/local_backend/tests/test_notifications.py @@ -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)