Skip to content

Commit 5ac71e2

Browse files
committed
fix pydantic validation error
1 parent 9e01213 commit 5ac71e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ async def test_run_tool_missing_params(self, get_n_rows_tool):
9292
async def test_run_tool_wrong_param_type(self, get_n_rows_tool: ToolboxTool):
9393
with pytest.raises(
9494
Exception,
95-
match='provided parameters were invalid: unable to parse value for "num_rows": .* not type "string"',
95+
match="1 validation error for get-n-rows\nnum_rows\n Input should "
96+
"be a valid string [type=string_type, input_value=2, input_type=int]",
9697
):
9798
await get_n_rows_tool(num_rows=2)
9899

0 commit comments

Comments
 (0)