summaryrefslogtreecommitdiff
path: root/tests/test_git_repository_cache.py
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-20 12:00:19 -0500
committerChristian Cleberg <[email protected]>2026-07-20 12:00:19 -0500
commitc544c1bd6ac7cf9c989abd887067d34b0455bd66 (patch)
tree09ff0e2323f7ef9eeef7f0d1c37e82b49b39628e /tests/test_git_repository_cache.py
parent084874158aa177757bb83e400bf1eb986b2b7e6c (diff)
downloadhutch-stats-c544c1bd6ac7cf9c989abd887067d34b0455bd66.tar.gz
hutch-stats-c544c1bd6ac7cf9c989abd887067d34b0455bd66.tar.bz2
hutch-stats-c544c1bd6ac7cf9c989abd887067d34b0455bd66.zip
fix: make todo idempotency test timestamps relative to now
test_todo_ingestion_is_idempotent used hardcoded May 2026 event timestamps, but the poller computes `since` as now - 30 days. Once wall-clock time passed 2026-06-01 the fixture events fell outside that window, were skipped by the todo since filter, and the test asserted 0 inserted instead of 3. Anchor the three fixture timestamps to datetime.now(UTC) while keeping their original relative ordering, so the test stays inside the poller's lookback window regardless of when it runs.
Diffstat (limited to 'tests/test_git_repository_cache.py')
0 files changed, 0 insertions, 0 deletions