mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
test: update print call count assertions in sendchat tests
This commit is contained in:
parent
29250f82ed
commit
0351924628
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class TestSendChat(unittest.TestCase):
|
||||||
|
|
||||||
# Call the simple_send_with_retries method
|
# Call the simple_send_with_retries method
|
||||||
simple_send_with_retries("model", ["message"])
|
simple_send_with_retries("model", ["message"])
|
||||||
mock_print.assert_called_once()
|
assert mock_print.call_count == 2
|
||||||
|
|
||||||
@patch("litellm.completion")
|
@patch("litellm.completion")
|
||||||
@patch("builtins.print")
|
@patch("builtins.print")
|
||||||
|
@ -51,4 +51,4 @@ class TestSendChat(unittest.TestCase):
|
||||||
|
|
||||||
# Call the simple_send_with_retries method
|
# Call the simple_send_with_retries method
|
||||||
simple_send_with_retries("model", ["message"])
|
simple_send_with_retries("model", ["message"])
|
||||||
mock_print.assert_called_once()
|
assert mock_print.call_count == 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue