test: make search/detail tests independent of today's date #3

Merged
jmz merged 3 commits from fix/stale-tests into main 2026-10-06 00:37:30 +00:00
Owner

Stacked on #2 (jmz-ktui dependency): merge #2 first — on main alone CI installs the squatted PyPI ktui and can't even collect tests.

3 tests failed on main since June 2026 ended (CI hadn't run since 2026-08-24, so it went unnoticed):

  • test_enter_opens_detail_screen: agenda hides days before its window start (_since, default today) → June fixtures filtered out → no selection. Pass since= explicitly.
  • test_search_lists_and_jumps / test_search_shows_preview_of_highlighted_result: search collapses the recurring 'Weekly standup' to its next occurrence ≥ today, by design. Expectations now computed relative to today.

App behaviour unchanged; 272 passed + ruff green locally.

🤖 Generated with Claude Code

**Stacked on #2** (jmz-ktui dependency): merge #2 first — on `main` alone CI installs the squatted PyPI `ktui` and can't even collect tests. 3 tests failed on `main` since June 2026 ended (CI hadn't run since 2026-08-24, so it went unnoticed): - `test_enter_opens_detail_screen`: agenda hides days before its window start (`_since`, default today) → June fixtures filtered out → no selection. Pass `since=` explicitly. - `test_search_lists_and_jumps` / `test_search_shows_preview_of_highlighted_result`: search collapses the recurring 'Weekly standup' to its next occurrence ≥ today, by design. Expectations now computed relative to today. App behaviour unchanged; 272 passed + ruff green locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmz force-pushed fix/stale-tests from bcb4d95bbc
Some checks failed
check / check (push) Failing after 39s
check / check (pull_request) Failing after 35s
to e487dfe02e
Some checks failed
check / check (push) Failing after 1m26s
check / check (pull_request) Failing after 1m22s
2026-10-06 00:13:38 +00:00
Compare
build: pin ruff <0.16 so CI lint matches the lockfile
All checks were successful
check / check (push) Successful in 1m21s
check / check (pull_request) Successful in 1m23s
dd24413915
CI installs dev deps with unconstrained pip, so it picked ruff 0.16.10, whose
new default rules (I001, DTZ011, PLW1510, ...) fail code that is clean under
0.15. Same pin claude-fleet uses; bumping ruff should be a deliberate change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jmz merged commit e5ba938a42 into main 2026-10-06 00:37:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/kal!3
No description provided.