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

Function test_resolve_cache_folder_semble_cache_location

tests/test_cache.py:110–116  ·  view source on GitHub ↗

SEMBLE_CACHE_LOCATION takes precedence over all platform-specific helpers.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

108
109
110def test_resolve_cache_folder_semble_cache_location(tmp_path: Path) -> None:
111 """SEMBLE_CACHE_LOCATION takes precedence over all platform-specific helpers."""
112 custom = tmp_path / "custom_cache"
113 with patch.dict("os.environ", {"SEMBLE_CACHE_LOCATION": str(custom)}):
114 result = resolve_cache_folder()
115 assert result == custom
116 assert custom.exists()
117
118
119def test_clear_cache(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

resolve_cache_folderFunction · 0.90

Tested by

no test coverage detected