fix: Add mock for confirm_ask method in test_architect_coder_auto_accept_true

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 13:41:39 -07:00
parent 63c2a98f3c
commit b5cd39cc50

View file

@ -38,6 +38,7 @@ class TestCoder(unittest.TestCase):
# YES! # YES!
io = InputOutput(yes=True) io = InputOutput(yes=True)
io.confirm_ask = MagicMock() # Mock the confirm_ask method
coder = Coder.create(self.GPT35, None, io, fnames=["added.txt"]) coder = Coder.create(self.GPT35, None, io, fnames=["added.txt"])
self.assertTrue(coder.allowed_to_edit("added.txt")) self.assertTrue(coder.allowed_to_edit("added.txt"))