Skip to content

test: make freshness fallback deterministic - #47

Open
Bnbig wants to merge 1 commit into
dondai1234:masterfrom
Bnbig:fix/deterministic-freshness-test
Open

test: make freshness fallback deterministic#47
Bnbig wants to merge 1 commit into
dondai1234:masterfrom
Bnbig:fix/deterministic-freshness-test

Conversation

@Bnbig

@Bnbig Bnbig commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • freeze the current UTC time in the missing fetched_at freshness test
  • assert the exact computed age and stale flag

Why

The test compared a fixed July 2026 publication date with the real current date, so it eventually started failing even though compute_freshness was behaving correctly.

Test

  • pytest tests/ — 763 passed, 5 deselected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants