test: update print call count assertions in sendchat tests

This commit is contained in:
Paul Gauthier (aider) 2024-10-28 15:09:11 -07:00
parent 29250f82ed
commit 0351924628

View file

@ -38,7 +38,7 @@ class TestSendChat(unittest.TestCase):
# Call the simple_send_with_retries method
simple_send_with_retries("model", ["message"])
mock_print.assert_called_once()
assert mock_print.call_count == 2
@patch("litellm.completion")
@patch("builtins.print")
@ -51,4 +51,4 @@ class TestSendChat(unittest.TestCase):
# Call the simple_send_with_retries method
simple_send_with_retries("model", ["message"])
mock_print.assert_called_once()
assert mock_print.call_count == 2