mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
parent
b107db98fa
commit
57ab2cc9da
8 changed files with 13 additions and 21 deletions
|
@ -4,7 +4,6 @@ from unittest.mock import MagicMock, patch
|
|||
import httpx
|
||||
import openai
|
||||
|
||||
from aider.models import Model
|
||||
from aider.sendchat import send_with_retries
|
||||
|
||||
|
||||
|
@ -28,7 +27,7 @@ class TestSendChat(unittest.TestCase):
|
|||
]
|
||||
|
||||
# Call the send_with_retries method
|
||||
send_with_retries(mock_client, Model.weak_model(), ["message"], None, False)
|
||||
send_with_retries(mock_client, "model", ["message"], None, False)
|
||||
mock_print.assert_called_once()
|
||||
|
||||
@patch("aider.sendchat.openai.ChatCompletion.create")
|
||||
|
@ -43,5 +42,5 @@ class TestSendChat(unittest.TestCase):
|
|||
]
|
||||
|
||||
# Call the send_with_retries method
|
||||
send_with_retries(mock_client, Model.weak_model(), ["message"], None, False)
|
||||
send_with_retries(mock_client, "model", ["message"], None, False)
|
||||
mock_print.assert_called_once()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue