Skip to content

Commit 1922fb6

Browse files
committed
fixup! fix(ingest): tie each code graph to its root and prune graphs of deleted roots (#711, slice 1)
1 parent db4953b commit 1922fb6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests_py/infrastructure/test_code_graph_cache.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def _graph(cache_dir: Path, name: str, root: Path | None) -> Path:
1818
return graph_dir
1919

2020

21+
def test_default_cache_dir_is_under_the_user_cache(tmp_path: Path, monkeypatch) -> None:
22+
monkeypatch.setattr(Path, "home", classmethod(lambda _cls: tmp_path))
23+
assert cache.default_cache_dir() == tmp_path / ".cache" / "cortex" / "code-graphs"
24+
25+
2126
def test_marker_records_the_resolved_root(tmp_path: Path) -> None:
2227
root = tmp_path / "proj"
2328
root.mkdir()

0 commit comments

Comments
 (0)