refactor: add mock for sendchat.simple_send_with_retries in test

This commit is contained in:
Paul Gauthier (aider) 2024-11-05 11:42:31 -08:00
parent 538752d0cf
commit f7c0c433c3

View file

@ -373,9 +373,8 @@ creating a new file
coder.send = mock_send
def mock_sswr(*args, **kwargs): return "noop"
#ai mock sendchat.simple_send_with_retries with that ^^ mock!
# Call the run method with a message
with patch("aider.sendchat.simple_send_with_retries", mock_sswr):
# Call the run method with a message
coder.run(with_message="hi")
content = Path(file1).read_text(encoding="utf-8")