mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
test: add warning message debug print in model test
This commit is contained in:
parent
0d86124b15
commit
20ca9c84c7
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ class TestModels(unittest.TestCase):
|
||||||
#ai print the args that tool_warning was called with!
|
#ai print the args that tool_warning was called with!
|
||||||
self.assertGreaterEqual(mock_io.tool_warning.call_count, 2) # Expect two warnings
|
self.assertGreaterEqual(mock_io.tool_warning.call_count, 2) # Expect two warnings
|
||||||
warning_messages = [call.args[0] for call in mock_io.tool_warning.call_args_list]
|
warning_messages = [call.args[0] for call in mock_io.tool_warning.call_args_list]
|
||||||
|
print("Warning messages:", warning_messages) # Add this line
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
any("bogus-model" in msg for msg in warning_messages)
|
any("bogus-model" in msg for msg in warning_messages)
|
||||||
) # Check that one of the warnings mentions the bogus model
|
) # Check that one of the warnings mentions the bogus model
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue