test: add comment about tool warning args inspection

This commit is contained in:
Paul Gauthier 2024-10-30 06:32:17 -07:00 committed by Paul Gauthier (aider)
parent 554fa98c48
commit 0d86124b15

View file

@ -73,6 +73,7 @@ class TestModels(unittest.TestCase):
result result
) # Should return True because there's a problem with the editor model ) # Should return True because there's a problem with the editor model
mock_io.tool_warning.assert_called_with(ANY) # Ensure a warning was issued mock_io.tool_warning.assert_called_with(ANY) # Ensure a warning was issued
#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]
self.assertTrue( self.assertTrue(