_windows_cache_dir prefers LOCALAPPDATA, falls back to APPDATA.
(env: dict[str, str], expected_base: str)
| 44 | ], |
| 45 | ) |
| 46 | def test_windows_cache_dir_env(env: dict[str, str], expected_base: str) -> None: |
| 47 | """_windows_cache_dir prefers LOCALAPPDATA, falls back to APPDATA.""" |
| 48 | with patch.dict("os.environ", env, clear=True): |
| 49 | assert _windows_cache_dir("semble") == Path(expected_base) / "semble" / "Cache" |
| 50 | |
| 51 | |
| 52 | def test_linux_cache_dir_with_xdg() -> None: |
nothing calls this directly
no test coverage detected