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