@@ -300,13 +300,7 @@ async def test_run_tool_with_optional_id_provided(self, toolbox: ToolboxClient):
300
300
301
301
response = await tool (
email = "[email protected] " ,
id = 1 )
302
302
assert isinstance (response , str )
303
- assert '"email":"[email protected] "' in response
304
- assert "row1" in response
305
- assert "row2" not in response
306
- assert "row3" not in response
307
- assert "row4" not in response
308
- assert "row5" not in response
309
- assert "row6" not in response
303
+ assert response == "null"
310
304
311
305
async def test_run_tool_with_optional_id_null (self , toolbox : ToolboxClient ):
312
306
"""Invoke a tool providing both required and optional parameters."""
@@ -331,7 +325,7 @@ async def test_run_tool_with_missing_required_param(self, toolbox: ToolboxClient
331
325
async def test_run_tool_with_required_param_null (self , toolbox : ToolboxClient ):
332
326
"""Invoke a tool without its required parameter."""
333
327
tool = await toolbox .load_tool ("search-rows" )
334
- with pytest .raises (TypeError , match = "missing a required argument: 'email'" ):
328
+ with pytest .raises (ValidationError , match = "missing a required argument: 'email'" ):
335
329
await tool (email = None , id = 5 , data = "row5" )
336
330
337
331
async def test_run_tool_with_all_default_params (self , toolbox : ToolboxClient ):
0 commit comments