mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
fix: Add mock for confirm_ask method in test_architect_coder_auto_accept_true
This commit is contained in:
parent
63c2a98f3c
commit
b5cd39cc50
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ class TestCoder(unittest.TestCase):
|
|||
|
||||
# YES!
|
||||
io = InputOutput(yes=True)
|
||||
io.confirm_ask = MagicMock() # Mock the confirm_ask method
|
||||
coder = Coder.create(self.GPT35, None, io, fnames=["added.txt"])
|
||||
|
||||
self.assertTrue(coder.allowed_to_edit("added.txt"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue