mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Set partial_response_function_call to None in mock_send_side_effect
This commit is contained in:
parent
bde6bb5c18
commit
99ce27f151
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ class TestScriptingAPI(unittest.TestCase):
|
|||
# Setup
|
||||
def mock_send_side_effect(messages, functions=None):
|
||||
coder.partial_response_content = "Changes applied successfully."
|
||||
coder.partial_response_function_call = None
|
||||
return "Changes applied successfully."
|
||||
|
||||
mock_send.side_effect = mock_send_side_effect
|
||||
|
@ -41,6 +42,7 @@ class TestScriptingAPI(unittest.TestCase):
|
|||
# Setup
|
||||
def mock_send_side_effect(messages, functions=None):
|
||||
coder.partial_response_content = "New function added successfully."
|
||||
coder.partial_response_function_call = None
|
||||
return "New function added successfully."
|
||||
|
||||
mock_send.side_effect = mock_send_side_effect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue