SEMBLE_CACHE_LOCATION takes precedence over all platform-specific helpers.
(tmp_path: Path)
| 108 | |
| 109 | |
| 110 | def 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 | |
| 119 | def test_clear_cache(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected