Skip to content

Commit 1e0b049

Browse files
committed
fix: Fix tests
1 parent 8a3f7e1 commit 1e0b049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolbox-langchain/tests/test_e2e.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def test_aload_toolset_specific(
7171
toolset = await toolbox.aload_toolset(toolset_name)
7272
assert len(toolset) == expected_length
7373
for tool in toolset:
74-
name = tool._ToolboxTool__async_tool._AsyncToolboxTool__name
74+
name = tool._ToolboxTool__core_sync_tool.__name__
7575
assert name in expected_tools
7676

7777
async def test_aload_toolset_all(self, toolbox):
@@ -85,7 +85,7 @@ async def test_aload_toolset_all(self, toolbox):
8585
"get-row-by-content-auth",
8686
]
8787
for tool in toolset:
88-
name = tool._ToolboxTool__async_tool._AsyncToolboxTool__name
88+
name = tool._ToolboxTool__core_sync_tool.__name__
8989
assert name in tool_names
9090

9191
async def test_run_tool_async(self, get_n_rows_tool):

0 commit comments

Comments
 (0)