File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/toolbox-core/tests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ async def test_initialization_and_introspection(
94
94
assert tool .__name__ == tool_details ["name" ]
95
95
assert tool .__doc__ == tool_details ["desc" ]
96
96
assert tool ._ToolboxTool__url == tool_details ["expected_url" ]
97
- assert tool ._ToolboxTool__session is tool . _ToolboxTool__session
98
- assert tool .__signature__ == tool_details ["signature " ]
99
- assert tool .__annotations__ == tool_details [ "annotations" ]
97
+ assert tool .__signature__ == tool_details [ "public_signature" ]
98
+ assert tool .__annotations__ == tool_details ["public_annotations " ]
99
+ assert tool ._ToolboxTool__bound_params == {}
100
100
# assert hasattr(tool, "__qualname__")
101
101
102
102
@pytest .mark .asyncio
@@ -118,7 +118,7 @@ async def test_call_success(
118
118
assert result == expected_result
119
119
mock_session .post .assert_called_once_with (
120
120
tool_details ["expected_url" ],
121
- json = {"arg1" : arg1_val , "opt_arg" : opt_arg_val },
121
+ payload = {"arg1" : arg1_val , "opt_arg" : opt_arg_val , "req_kwarg" : req_kwarg_val },
122
122
)
123
123
mock_session .post .return_value .__aenter__ .return_value .json .assert_awaited_once ()
124
124
You can’t perform that action at this time.
0 commit comments