refactor: split error and retry messages in simple_send_with_retries

This commit is contained in:
Paul Gauthier 2024-10-28 15:10:27 -07:00 committed by Paul Gauthier (aider)
parent 3baad86afd
commit 907c1dbe2b
2 changed files with 2 additions and 4 deletions

View file

@ -6,9 +6,6 @@ import httpx
from aider.llm import litellm
from aider.sendchat import retry_exceptions, simple_send_with_retries
# ai: fix these test errors! it should not test for 2 print() calls!
FAILED tests/basic/test_sendchat.py::TestSendChat::test_simple_send_with_retries_connection_error - AssertionError: Expected 'print' to have been called once. Called 2 times.
FAILED tests/basic/test_sendchat.py::TestSendChat::test_simple_send_with_retries_rate_limit_error - AssertionError: Expected 'print' to have been called once. Called 2 times.
class PrintCalled(Exception):
pass