Skip to content

Commit 6b23ee9

Browse files
committed
chore: Fix unit tests
1 parent 3244412 commit 6b23ee9

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
@@ -286,7 +286,7 @@ def test_toolbox_tool_run(self, toolbox_tool, mock_core_tool):
286286
expected_result = "sync_run_output"
287287
mock_core_tool.return_value = expected_result
288288

289-
result = toolbox_tool._run(**kwargs_to_run)
289+
result = toolbox_tool._run(**kwargs_to_run, config={})
290290

291291
assert result == expected_result
292292
assert mock_core_tool.call_count == 1
@@ -307,7 +307,7 @@ async def to_thread_side_effect(func, *args, **kwargs_for_func):
307307

308308
mock_to_thread_in_tools.side_effect = to_thread_side_effect
309309

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

312312
assert result == expected_result
313313
mock_to_thread_in_tools.assert_awaited_once_with(

0 commit comments

Comments
 (0)