fix: update test to use RUFF_FORMAT_AND_AUTO_FIX constant

This commit is contained in:
Jon Michael Aanes (aider) 2025-04-15 00:30:59 +02:00
parent dce25d79d6
commit 34c89c0e5f

View File

@ -78,5 +78,5 @@ def test_solve_issue_with_no_aider_changes():
mock_get_hash.assert_called_once() mock_get_hash.assert_called_once()
mock_has_changes.assert_called_once_with(Path(tmpdirname), "abcdef") mock_has_changes.assert_called_once_with(Path(tmpdirname), "abcdef")
# Verify that the initial ruff pass was run # 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) for call_args in mock_run_cmd.call_args_list)