evict() removes an existing cache entry by resolved path.
(cache: _IndexCache, tmp_path: Path)
| 462 | |
| 463 | |
| 464 | def 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 | |
| 472 | def test_cache_evict_missing(cache: _IndexCache, tmp_path: Path) -> None: |