Returns None when the index directory is missing or incomplete.
(tmp_path: Path)
| 155 | |
| 156 | |
| 157 | def 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( |
nothing calls this directly
no test coverage detected