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

Function test_get_validated_cache_invalid_index

tests/test_cache.py:157–165  ·  view source on GitHub ↗

Returns None when the index directory is missing or incomplete.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

155
156
157def test_get_validated_cache_invalid_index(tmp_path: Path) -> None:
158 """Returns None when the index directory is missing or incomplete."""
159 with patch("semble.cache.find_index_from_cache_folder", return_value=tmp_path / "missing"):
160 assert get_validated_cache("/path", None, [ContentType.CODE]) is None
161
162 index_path = tmp_path / "index"
163 index_path.mkdir()
164 with patch("semble.cache.find_index_from_cache_folder", return_value=index_path):
165 assert get_validated_cache("/path", None, [ContentType.CODE]) is None
166
167
168@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

get_validated_cacheFunction · 0.90

Tested by

no test coverage detected