Skip to content

Commit e1fd6d1

Browse files
committed
chore: Fix unit tests
1 parent 0f50eb0 commit e1fd6d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolbox-langchain/tests/test_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def test_toolbox_tool_run(self, toolbox_tool, mock_core_tool):
273273
expected_result = "sync_run_output"
274274
mock_core_tool.return_value = expected_result
275275

276-
result = toolbox_tool._run(**kwargs_to_run)
276+
result = toolbox_tool._run(**kwargs_to_run, config={})
277277

278278
assert result == expected_result
279279
assert mock_core_tool.call_count == 1
@@ -294,7 +294,7 @@ async def to_thread_side_effect(func, *args, **kwargs_for_func):
294294

295295
mock_to_thread_in_tools.side_effect = to_thread_side_effect
296296

297-
result = await toolbox_tool._arun(**kwargs_to_run)
297+
result = await toolbox_tool._arun(**kwargs_to_run, config={})
298298

299299
assert result == expected_result
300300
mock_to_thread_in_tools.assert_awaited_once_with(

0 commit comments

Comments
 (0)