diff options
| author | Christian Cleberg <[email protected]> | 2026-07-20 12:00:19 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-20 12:00:19 -0500 |
| commit | c544c1bd6ac7cf9c989abd887067d34b0455bd66 (patch) | |
| tree | 09ff0e2323f7ef9eeef7f0d1c37e82b49b39628e /tests/test_contributions_api.py | |
| parent | 084874158aa177757bb83e400bf1eb986b2b7e6c (diff) | |
| download | hutch-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_contributions_api.py')
0 files changed, 0 insertions, 0 deletions
