From 1053703f0d60a3853e57808386350cbb990caf11 Mon Sep 17 00:00:00 2001 From: bonamin Date: Fri, 20 Nov 2026 15:29:14 +0200 Subject: [PATCH] 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 --- local_backend/tests/test_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)