When model_path is None, resolve_model_name() is used for comparison.
(tmp_path: Path)
| 275 | |
| 276 | |
| 277 | def test_get_validated_cache_resolves_default_model(tmp_path: Path) -> None: |
| 278 | """When model_path is None, resolve_model_name() is used for comparison.""" |
| 279 | index_path = tmp_path / "index" |
| 280 | _write_metadata(index_path, "default/model", ["code"], 0.0) |
| 281 | with patch("semble.cache.find_index_from_cache_folder", return_value=index_path): |
| 282 | with patch("semble.cache.resolve_model_name", return_value="other/model"): |
| 283 | assert get_validated_cache("/path", None, [ContentType.CODE]) is None |
| 284 | |
| 285 | |
| 286 | def test_get_validated_cache_git_url_returns_immediately(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected