Skip to content

Commit f20ee4c

Browse files
committed
chore: Make unit test more robust.
1 parent fad5904 commit f20ee4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/toolbox-core/tests/test_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ async def test_rebind_param_fail(self, tool_name, client):
454454

455455
tool_with_bound_param = tool.bind_parameters({"argA": lambda: 10})
456456

457+
assert len(tool_with_bound_param.__signature__.parameters) == 1
458+
assert "argA" not in tool_with_bound_param.__signature__.parameters
459+
457460
with pytest.raises(ValueError) as e:
458461
tool_with_bound_param.bind_parameters({"argA": lambda: 20})
459462

0 commit comments

Comments
 (0)