Skip to content

Commit 74b88bb

Browse files
committed
add tests
1 parent 360c169 commit 74b88bb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ async def test_load_toolset_specific(
6161
tool_names = {tool.__name__ for tool in toolset}
6262
assert tool_names == set(expected_tools)
6363

64+
async def test_load_toolset_default(self, toolbox: ToolboxClient):
65+
"""Load the default toolset, i.e. all tools."""
66+
toolset = await toolbox.load_toolset()
67+
assert len(toolset) == "5"
68+
tool_names = {tool.__name__ for tool in toolset}
69+
expected_tools = [
70+
"get-row-by-content-auth",
71+
"get-row-by-email-auth",
72+
"get-row-by-id-auth",
73+
"get-row-by-id",
74+
"get-n-rows",
75+
]
76+
assert tool_names == set(expected_tools)
77+
6478
async def test_run_tool(self, get_n_rows_tool: ToolboxTool):
6579
"""Invoke a tool."""
6680
response = await get_n_rows_tool(num_rows="2")

0 commit comments

Comments
 (0)