Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion backend/tests/unit/test_ws_b_short_term_lifecycle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""WS-B canonical short-term promotion + TTL lifecycle tests."""

Check warning on line 1 in backend/tests/unit/test_ws_b_short_term_lifecycle.py

View workflow job for this annotation

GitHub Actions / PR Metadata Preflight

Large changed file

backend/tests/unit/test_ws_b_short_term_lifecycle.py is 1171 lines; consider splitting files over 800 lines.

Check warning on line 1 in backend/tests/unit/test_ws_b_short_term_lifecycle.py

View workflow job for this annotation

GitHub Actions / PR Metadata Preflight

Large changed file

backend/tests/unit/test_ws_b_short_term_lifecycle.py is 1171 lines; consider splitting files over 800 lines.

from __future__ import annotations

Expand Down Expand Up @@ -120,7 +120,13 @@
_trusted_account_generation,
)

NOW = datetime(2026, 6, 20, 12, 0, tzinfo=timezone.utc)
# Anchored to the real clock rather than a fixed calendar date. Several cases persist an
# item through write_canonical_extraction_memory, which has no clock parameter and stamps
# captured_at from the real clock, and then drive processing with now=NOW. A fixed NOW
# meant expires_at (NOW + DEFAULT_SHORT_TERM_TTL_DAYS) eventually fell behind real
# captured_at, and the short_term "expires_at must be after captured_at" invariant started
# failing on its own — with no code change — once the wall clock passed that date.
NOW = datetime.now(timezone.utc).replace(hour=12, minute=0, second=0, microsecond=0)

_WS_B_RUNTIME_MODULE_NAMES = (
"database.memory_apply_store",
Expand Down
Loading