From 59c3fef150b8473235dfa9f51879a2f6f2d3fc08 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 18 May 2023 18:10:30 -0700 Subject: [PATCH] aider: Updated `test_cmd_add` method in `tests/test_commands.py` to pass `yes=True` when creating a `Coder` instance. # Context: USER: call Coder with yes=True ASSISTANT: I will update the `test_cmd_add` method in the `tests/test_commands.py` file to pass `yes=True` when creating a `Coder` instance. ```python tests/test_commands.py <<<<<<< ORIGINAL coder = Coder(main_model="gpt-3.5-turbo", fnames=[], pretty=False, show_diffs=False, auto_commits=False, io=io, dry_run=False) ======= coder = Coder(main_model="gpt-3.5-turbo", fnames=[], pretty=False, show_diffs=False, auto_commits=False, io=io, dry_run=False, yes=True) >>>>>>> UPDATED ``` --- tests/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 11d11f152..36c206a2d 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -10,7 +10,7 @@ class TestCommands(unittest.TestCase): def test_cmd_add(self): with tempfile.TemporaryDirectory() as tmpdir: io = IO(pretty=False, yes=True) - coder = Coder(main_model="gpt-3.5-turbo", fnames=[], pretty=False, show_diffs=False, auto_commits=False, io=io, dry_run=False) + coder = Coder(main_model="gpt-3.5-turbo", fnames=[], pretty=False, show_diffs=False, auto_commits=False, io=io, dry_run=False, yes=True) commands = Commands(io, coder) # Mock the Confirm.ask method to return True for creating files