mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
fix: add dummy message to prevent empty cur_messages in test
This commit is contained in:
parent
309893fd1e
commit
34b8c3f47c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue