resolve_cache_folder calls the correct platform helper.
(platform: str, mock_target: str, expected: Path)
| 87 | ], |
| 88 | ) |
| 89 | def test_resolve_cache_folder(platform: str, mock_target: str, expected: Path) -> None: |
| 90 | """resolve_cache_folder calls the correct platform helper.""" |
| 91 | with ( |
| 92 | patch.object(sys, "platform", platform), |
| 93 | patch.dict("os.environ", {}, clear=True), |
| 94 | patch(mock_target, return_value=expected) as mock_fn, |
| 95 | patch("pathlib.Path.mkdir"), |
| 96 | ): |
| 97 | result = resolve_cache_folder() |
| 98 | mock_fn.assert_called_once_with("semble") |
| 99 | assert result == expected |
| 100 | |
| 101 | |
| 102 | def test_get_valid_user_cache_dir_relative_path() -> None: |
nothing calls this directly
no test coverage detected