The stat-index location/anchor are chosen once per process via module globals (#1747/#2199). Reset them so each test sees a fresh-process decision — same pattern as tests/test_stat_index_portability.py.
()
| 362 | # stored ids match no key and the original root's slug survives into graph.json. |
| 363 | |
| 364 | def _reset_stat_index(): |
| 365 | """The stat-index location/anchor are chosen once per process via module |
| 366 | globals (#1747/#2199). Reset them so each test sees a fresh-process |
| 367 | decision — same pattern as tests/test_stat_index_portability.py.""" |
| 368 | from graphify import cache as _cache |
| 369 | |
| 370 | _cache._stat_index_root = None |
| 371 | _cache._stat_index_anchor = None |
| 372 | _cache._stat_index = {} |
| 373 | _cache._stat_index_dirty = False |
| 374 | |
| 375 | |
| 376 | def _portability_corpus(base: Path) -> Path: |
no outgoing calls
no test coverage detected