Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlvallelonga committed Dec 22, 2024
1 parent 78962e7 commit 2d35c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jobs/get_next_ai_message_job_openai_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class GetNextAIMessageJobOpenaiTest < ActiveJob::TestCase
json_content_text = JSON.parse(content_text)
assert_equal image_generation_prompt, json_content_text["prompt_given"], "First new message should have the result of calling the tool"
assert first_new_message.tool_call_id.present?
assert first_new_message.content_tool_calls.blank?
assert first_new_message.content_tool_calls.present?
assert_equal @image_generation_message.content_tool_calls.dig(0, :id), first_new_message.tool_call_id, "ID of tool execution should have matched decision to call the tool"
assert first_new_message.finished?, "This message SHOULD HAVE been considered finished"

Expand Down

0 comments on commit 2d35c17

Please sign in to comment.