From 3a448ca92257163e8c83404f5a670d0982cf97cd Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Thu, 20 Aug 2026 16:48:47 +0100 Subject: [PATCH] fix: Stop deleting user's real tokens in tests --- tests/unit_tests/cli/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):