_linux_cache_dir uses XDG_CACHE_HOME when set.
()
| 50 | |
| 51 | |
| 52 | def test_linux_cache_dir_with_xdg() -> None: |
| 53 | """_linux_cache_dir uses XDG_CACHE_HOME when set.""" |
| 54 | with patch.dict("os.environ", {"XDG_CACHE_HOME": "/xdg"}, clear=True): |
| 55 | assert _linux_cache_dir("semble") == Path("/xdg") / "semble" |
| 56 | |
| 57 | |
| 58 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected