mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 04:44:59 +00:00
test: print confirm_ask args in test_apply_shell_commands_with_no_suggest
This commit is contained in:
parent
ac3df464e1
commit
3bc1b7c2b7
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,7 @@ class TestMain(TestCase):
|
||||||
|
|
||||||
# Make sure confirm_ask is not called when --no-suggest-shell-commands is used
|
# Make sure confirm_ask is not called when --no-suggest-shell-commands is used
|
||||||
mock_confirm_ask.assert_called_once()
|
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:
|
with patch("aider.io.InputOutput.confirm_ask") as mock_confirm_ask:
|
||||||
main(
|
main(
|
||||||
|
@ -654,6 +655,7 @@ class TestMain(TestCase):
|
||||||
|
|
||||||
# Make sure confirm_ask IS called when --no-suggest-shell-commands is not used
|
# Make sure confirm_ask IS called when --no-suggest-shell-commands is not used
|
||||||
mock_confirm_ask.assert_called_once()
|
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
|
# Check that the file was not created in either case
|
||||||
self.assertFalse(Path("no_suggest_file.txt").exists())
|
self.assertFalse(Path("no_suggest_file.txt").exists())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue