MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / test_exact_root_match

Method test_exact_root_match

tests/test_settings.py:254–258  ·  view source on GitHub ↗
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

252 assert resolve_db_dir(src / "myproject") == dst / "myproject"
253
254 def test_exact_root_match(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
255 src = tmp_path / "workspace"
256 dst = tmp_path / "db-files"
257 monkeypatch.setenv("COCOINDEX_CODE_DB_PATH_MAPPING", f"{src}={dst}")
258 assert resolve_db_dir(src) == dst
259
260 def test_no_match_falls_back(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
261 src = tmp_path / "workspace"

Callers

nothing calls this directly

Calls 1

resolve_db_dirFunction · 0.90

Tested by

no test coverage detected