MCPcopy
hub / github.com/MinishLab/semble / test_cache_evict

Function test_cache_evict

tests/test_mcp.py:464–469  ·  view source on GitHub ↗

evict() removes an existing cache entry by resolved path.

(cache: _IndexCache, tmp_path: Path)

Source from the content-addressed store, hash-verified

462
463
464def test_cache_evict(cache: _IndexCache, tmp_path: Path) -> None:
465 """evict() removes an existing cache entry by resolved path."""
466 key = str(tmp_path.resolve())
467 cache._tasks[key] = MagicMock()
468 cache.evict(str(tmp_path))
469 assert key not in cache._tasks
470
471
472def test_cache_evict_missing(cache: _IndexCache, tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

evictMethod · 0.80

Tested by

no test coverage detected