Skip to content

tests: make confirmed-date display tests independent of live Laso Finance data - #312

Merged
nerd27dk merged 1 commit into
mainfrom
tests/fixture-independent-confirmed-dates
Nov 21, 2026
Merged

nerd27dk merged 1 commit into
mainfrom
tests/fixture-independent-confirmed-dates

Conversation

@cw-instinct

@cw-instinct cw-instinct Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Test-only fix. No product code, no data.

tests/test_confirmed_dates.py and tests/test_refresh_dates_finite_cache.py copy the real laso-finance entry from the data snapshot and cleared the date fields (confirmed_at, source_as_of, last_settlement_seen_at) from one claim only. The weekly refresh legitimately sets those dates on other claims of that entry, so 3 tests failed on the refresh PR #311 (CI run 44939956514) while passing on main.

Fix: clear the three date fields from all claims of the copy, in both card() helpers (+6 lines).

Checked locally: python -m unittest discover -s tests gives 506 tests OK (6 skipped) on main b779814 and on the #311 tree with this change. The 3 tests fail on #311 without it.

Not merged or deployed by this PR. Merge needs a separate go from Michael.

…ent of live Laso Finance data

The tests copied the real laso-finance entry and cleared the date fields from one claim only. A refresh sets confirmed_at and last_settlement_seen_at on other claims of that entry, so the tests failed on every refresh PR that touched it (seen on #311). Clear the three date fields from all claims of the copy. Tests only.
@cw-instinct
cw-instinct Bot requested a review from nerd27dk as a code owner November 21, 2026 19:20
@github-actions github-actions Bot added the outside-signal Report or PR from outside the Commonworld team; picked up by our sweep label Nov 21, 2026
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T19:31:57.438939Z dd3df42 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: dd3df42ae2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nerd27dk
nerd27dk merged commit 4efcd1b into main Nov 21, 2026
14 checks passed
@nerd27dk
nerd27dk deleted the tests/fixture-independent-confirmed-dates branch November 21, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outside-signal Report or PR from outside the Commonworld team; picked up by our sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants