mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
updated mocks of Coder.send() to fix tests
This commit is contained in:
parent
e71cf03f36
commit
594a6bd934
2 changed files with 20 additions and 10 deletions
|
@ -312,8 +312,9 @@ new
|
|||
|
||||
"""
|
||||
coder.partial_response_function_call = dict()
|
||||
return []
|
||||
|
||||
coder.send = MagicMock(side_effect=mock_send)
|
||||
coder.send = mock_send
|
||||
|
||||
# Call the run method with a message
|
||||
coder.run(with_message="hi")
|
||||
|
@ -354,8 +355,9 @@ new
|
|||
|
||||
"""
|
||||
coder.partial_response_function_call = dict()
|
||||
return []
|
||||
|
||||
coder.send = MagicMock(side_effect=mock_send)
|
||||
coder.send = mock_send
|
||||
|
||||
# Call the run method with a message
|
||||
coder.run(with_message="hi")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue