From 3bc1b7c2b750f18e50de4248012ba4a650efc06c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 13:53:22 -0700 Subject: [PATCH] test: print confirm_ask args in test_apply_shell_commands_with_no_suggest --- tests/basic/test_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index d29dba9da..52137d990 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -644,6 +644,7 @@ class TestMain(TestCase): # Make sure confirm_ask is not called when --no-suggest-shell-commands is used mock_confirm_ask.assert_called_once() + print("confirm_ask args (with --no-suggest-shell-commands):", mock_confirm_ask.call_args) with patch("aider.io.InputOutput.confirm_ask") as mock_confirm_ask: main( @@ -654,6 +655,7 @@ class TestMain(TestCase): # Make sure confirm_ask IS called when --no-suggest-shell-commands is not used mock_confirm_ask.assert_called_once() + print("confirm_ask args (without --no-suggest-shell-commands):", mock_confirm_ask.call_args) # Check that the file was not created in either case self.assertFalse(Path("no_suggest_file.txt").exists())