Skip to content

Commit b05ea39

Browse files
committed
add new test case
1 parent fe2a332 commit b05ea39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ async def test_run_tool_wrong_param_type(self, get_n_rows_tool: ToolboxTool):
9898

9999
##### Bind param tests
100100
async def test_bind_params(self, toolbox, get_n_rows_tool):
101+
new_tool = get_n_rows_tool.bind_parameters({"num_rows": "3"})
102+
response = await new_tool()
103+
104+
assert isinstance(response, str)
105+
assert "row1" in response
106+
assert "row2" in response
107+
assert "row3" in response
108+
assert "row4" not in response
109+
110+
async def test_bind_params_callable(self, toolbox, get_n_rows_tool):
101111
new_tool = get_n_rows_tool.bind_parameters({"num_rows": lambda: "3"})
102112
response = await new_tool()
103113

0 commit comments

Comments
 (0)