diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 07a82037d..0982d8bf4 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -903,6 +903,9 @@ class TestCommands(TestCase): ) ) + # Add a dummy message to ensure format_messages() works + vision_coder.cur_messages = [{"role": "user", "content": "Check the image"}] + # Check that the image file appears in the messages messages = vision_coder.format_messages().all_messages() found_image = False