MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _reset_stat_index

Function _reset_stat_index

tests/test_cache.py:364–373  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

362# stored ids match no key and the original root's slug survives into graph.json.
363
364def _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
376def _portability_corpus(base: Path) -> Path:

Calls

no outgoing calls

Tested by

no test coverage detected