mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
test: update sanity_check_model tests to use tool_warning
This commit is contained in:
parent
a6892c0421
commit
d8c78cf8cd
1 changed files with 4 additions and 4 deletions
|
@ -40,8 +40,8 @@ class TestModels(unittest.TestCase):
|
|||
|
||||
sanity_check_model(mock_io, model)
|
||||
|
||||
mock_io.tool_error.assert_called()
|
||||
calls = mock_io.tool_error.call_args_list
|
||||
mock_io.tool_warning.assert_called()
|
||||
calls = mock_io.tool_warning.call_args_list
|
||||
self.assertIn("- API_KEY1: ✓ Set", str(calls))
|
||||
self.assertIn("- API_KEY2: ✓ Set", str(calls))
|
||||
|
||||
|
@ -57,8 +57,8 @@ class TestModels(unittest.TestCase):
|
|||
|
||||
sanity_check_model(mock_io, model)
|
||||
|
||||
mock_io.tool_error.assert_called()
|
||||
calls = mock_io.tool_error.call_args_list
|
||||
mock_io.tool_warning.assert_called()
|
||||
calls = mock_io.tool_warning.call_args_list
|
||||
self.assertIn("- API_KEY1: ✗ Not set", str(calls))
|
||||
self.assertIn("- API_KEY2: ✗ Not set", str(calls))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue