clear_cache removes all .json files from graphify-out/cache/ (all subdirs).
(tmp_file, cache_root)
| 91 | |
| 92 | |
| 93 | def test_clear_cache(tmp_file, cache_root): |
| 94 | """clear_cache removes all .json files from graphify-out/cache/ (all subdirs).""" |
| 95 | save_cached(tmp_file, {"nodes": [], "edges": []}, root=cache_root) |
| 96 | # Since v0.5.3 entries go into cache/ast/, not the flat cache/ dir |
| 97 | cache_base = cache_root / "graphify-out" / "cache" |
| 98 | assert len(list(cache_base.rglob("*.json"))) > 0 |
| 99 | clear_cache(cache_root) |
| 100 | assert len(list(cache_base.rglob("*.json"))) == 0 |
| 101 | |
| 102 | |
| 103 | def test_md_frontmatter_only_change_same_hash(tmp_path): |
nothing calls this directly
no test coverage detected