Commit 3f0a2b9
committed
fix(test): patch MEMORY_INDEX alongside MEMORY_DIR in import tests
The two new memory_import tests monkeypatched mem.MEMORY_DIR but not
mem.MEMORY_INDEX (a Path constant frozen at import time). _write_index()
inside handle_memory_import then wrote to the original
~/.tdpilot-api/memory/MEMORY.md location. On my dev machine the dir
exists, so the tests silently wrote there and passed. On CI's fresh
runner the dir doesn't exist → FileNotFoundError.
Fix: monkeypatch both MEMORY_DIR and MEMORY_INDEX. Same pattern as the
existing tests would benefit from but they don't trigger _write_index.1 parent 1de165a commit 3f0a2b9
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
0 commit comments