diff --git a/tests/unit_tests/cli/test_cli.py b/tests/unit_tests/cli/test_cli.py index 3e27cfc98e..65576a64ed 100644 --- a/tests/unit_tests/cli/test_cli.py +++ b/tests/unit_tests/cli/test_cli.py @@ -72,8 +72,8 @@ def mock_stomp_client(mock_connection: Mock) -> StompClient: @pytest.fixture -def runner(): - return CliRunner() +def runner(tmp_path: Path): + return CliRunner(env={"XDG_CACHE_HOME": str(tmp_path)}) def test_cli_version(runner: CliRunner):