mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
refactor: add mock for sendchat.simple_send_with_retries in test
This commit is contained in:
parent
538752d0cf
commit
f7c0c433c3
1 changed files with 2 additions and 3 deletions
|
@ -373,8 +373,7 @@ creating a new file
|
||||||
coder.send = mock_send
|
coder.send = mock_send
|
||||||
|
|
||||||
def mock_sswr(*args, **kwargs): return "noop"
|
def mock_sswr(*args, **kwargs): return "noop"
|
||||||
#ai mock sendchat.simple_send_with_retries with that ^^ mock!
|
with patch("aider.sendchat.simple_send_with_retries", mock_sswr):
|
||||||
|
|
||||||
# Call the run method with a message
|
# Call the run method with a message
|
||||||
coder.run(with_message="hi")
|
coder.run(with_message="hi")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue