From 34c89c0e5fa2b1b2b1e05e72e59471e6fe0bd0e8 Mon Sep 17 00:00:00 2001 From: "Jon Michael Aanes (aider)" Date: Tue, 15 Apr 2025 00:30:59 +0200 Subject: [PATCH] fix: update test to use RUFF_FORMAT_AND_AUTO_FIX constant --- test/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_init.py b/test/test_init.py index 218746f..84a0a3c 100644 --- a/test/test_init.py +++ b/test/test_init.py @@ -78,5 +78,5 @@ def test_solve_issue_with_no_aider_changes(): mock_get_hash.assert_called_once() mock_has_changes.assert_called_once_with(Path(tmpdirname), "abcdef") # Verify that the initial ruff pass was run - assert any(call_args[0][0] == ['bash', '-c', 'set -e;ruff format;ruff check --fix --ignore RUF022 --ignore PGH004;ruff format;ruff check --fix --ignore RUF022 --ignore PGH004'] + assert any(call_args[0][0] == ['bash', '-c', RUFF_FORMAT_AND_AUTO_FIX] for call_args in mock_run_cmd.call_args_list)