fix: add dummy message to prevent empty cur_messages in test

This commit is contained in:
Paul Gauthier (aider) 2024-11-26 19:46:51 -08:00
parent 309893fd1e
commit 34b8c3f47c

View file

@ -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