Repository navigation
Commit 3aaeb87
Keep the test suite out of the developer's real HyperView store
`Dataset(..., persist=False)` skips the dataset, but workspace state still went
to whatever `StorageConfig` resolved from the environment -- by default the
developer's own `~/.hyperview`. Four test modules redirected it themselves; the
other thirty-three did not, so a test run wrote fixture workspaces into the same
registry the demos and Static Space exports read from. On this machine that had
accumulated 2,686 of them since April, against 62 real workspaces, and nothing
stopped a fixture id from colliding with a real one.
An autouse session fixture points both storage roots at a temporary directory.
That covers every registry, not just datasets: `get_runtime_config_dir()`
derives the config directory from `datasets_dir.parent`, so workspaces.json,
providers.json and jobs.json move with it.
A second fixture asserts the real registry's mtime is unchanged around every
test, so a future code path that resolves the store some other way fails here
instead of silently polluting the developer's machine again.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 29de6ef commit 3aaeb87
1 file changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments