Skip to content

Commit 6793334

Browse files
committed
fix unit test
1 parent 9c3226a commit 6793334

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/tests/unit/onyx/chat/test_answer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,11 @@ def test_answer_with_search_no_tool_calling(
326326
user_message = (
327327
answer_instance.graph_inputs.prompt_builder.get_user_message_content()
328328
)
329+
330+
prev_messages = answer_instance.graph_inputs.prompt_builder.get_message_history()
329331
# Verify that get_args_for_non_tool_calling_llm was called on the mock_search_tool
330332
mock_search_tool.get_args_for_non_tool_calling_llm.assert_called_once_with(
331-
user_message, [], answer_instance.graph_config.tooling.primary_llm
333+
user_message, prev_messages, answer_instance.graph_config.tooling.primary_llm
332334
)
333335

334336
# Verify that the search tool's run method was called

0 commit comments

Comments
 (0)