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

Function test_get_validated_cache_resolves_default_model

tests/test_cache.py:277–283  ·  view source on GitHub ↗

When model_path is None, resolve_model_name() is used for comparison.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

275
276
277def 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
286def test_get_validated_cache_git_url_returns_immediately(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

get_validated_cacheFunction · 0.90
_write_metadataFunction · 0.85

Tested by

no test coverage detected