mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
style: fix linting issues with whitespace and line breaks
This commit is contained in:
parent
3d66b53791
commit
cd133f95ee
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ CACHE = None
|
||||||
|
|
||||||
RETRY_TIMEOUT = 60
|
RETRY_TIMEOUT = 60
|
||||||
|
|
||||||
|
|
||||||
def retry_exceptions():
|
def retry_exceptions():
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,14 @@ from aider.sendchat import simple_send_with_retries
|
||||||
class PrintCalled(Exception):
|
class PrintCalled(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class TestSendChat(unittest.TestCase):
|
class TestSendChat(unittest.TestCase):
|
||||||
def test_retry_exceptions(self):
|
def test_retry_exceptions(self):
|
||||||
"""Test that retry_exceptions() can be called without raising errors"""
|
"""Test that retry_exceptions() can be called without raising errors"""
|
||||||
from aider.sendchat import retry_exceptions
|
from aider.sendchat import retry_exceptions
|
||||||
|
|
||||||
retry_exceptions() # Should not raise any exceptions
|
retry_exceptions() # Should not raise any exceptions
|
||||||
|
|
||||||
@patch("litellm.completion")
|
@patch("litellm.completion")
|
||||||
@patch("builtins.print")
|
@patch("builtins.print")
|
||||||
def test_simple_send_with_retries_rate_limit_error(self, mock_print, mock_completion):
|
def test_simple_send_with_retries_rate_limit_error(self, mock_print, mock_completion):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue