Repository navigation
Commit ac64f2f
test(fetcher/codex_usage): compute fixture path from today's date
The `fetch_reads_jsonl_from_codex_home_env_override` test hardcoded the
session directory and filename to `2026-05-23`. Once
`list_session_files` started filtering by filename date (bfc728f), any
fixture whose filename predates the `since="today"` cutoff (today - 1
day) is skipped before its JSONL is opened, leaving the body as
"Today: no sessions". The test passed on 2026-05-23/24 and started
failing on 2026-05-25.
Compute the directory components and filename from `Utc::now()` so the
fixture always lands inside the cutoff window.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent d65bbae commit ac64f2f
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| |||
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
841 | 846 | | |
842 | 847 | | |
843 | 848 | | |
844 | | - | |
845 | | - | |
846 | | - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
847 | 852 | | |
848 | | - | |
| 853 | + | |
849 | 854 | | |
850 | 855 | | |
851 | 856 | | |
| |||
0 commit comments