Returns None when stored model or content type doesn't match the request.
(
stored_model: str,
stored_content: list[str],
req_model: str,
req_content: list[ContentType],
tmp_path: Path,
)
| 174 | ], |
| 175 | ) |
| 176 | def test_get_validated_cache_metadata_mismatch( |
| 177 | stored_model: str, |
| 178 | stored_content: list[str], |
| 179 | req_model: str, |
| 180 | req_content: list[ContentType], |
| 181 | tmp_path: Path, |
| 182 | ) -> None: |
| 183 | """Returns None when stored model or content type doesn't match the request.""" |
| 184 | index_path = tmp_path / "index" |
| 185 | _write_metadata(index_path, stored_model, stored_content, 0.0) |
| 186 | with patch("semble.cache.find_index_from_cache_folder", return_value=index_path): |
| 187 | assert get_validated_cache("/path", req_model, req_content) is None |
| 188 | |
| 189 | |
| 190 | def test_get_validated_cache_reads_utf8_metadata_with_non_ascii_file_paths(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected