From 59cc799b0d4cf18e8228321db5f419bc7704a3e0 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 13:53:27 -0700 Subject: [PATCH] style: format code with linter in test_main.py --- tests/basic/test_main.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index 52137d990..3ce341323 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -638,24 +638,30 @@ class TestMain(TestCase): with patch("aider.io.InputOutput.confirm_ask") as mock_confirm_ask: main( ["--apply", "shell.md", "--no-suggest-shell-commands"], - #input=DummyInput(), - #output=DummyOutput(), + # input=DummyInput(), + # output=DummyOutput(), ) # 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) + 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( ["--apply", "shell.md"], - #input=DummyInput(), - #output=DummyOutput(), + # input=DummyInput(), + # output=DummyOutput(), ) # 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) + 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())