Skip to content

Commit a3ecb49

Browse files
committed
fix error string
1 parent 484d347 commit a3ecb49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import pytest_asyncio
3838

3939
from toolbox_core.client import ToolboxClient
40+
from pydantic import ValidationError
4041
from toolbox_core.tool import ToolboxTool
4142

4243

@@ -91,9 +92,8 @@ async def test_run_tool_missing_params(self, get_n_rows_tool):
9192

9293
async def test_run_tool_wrong_param_type(self, get_n_rows_tool: ToolboxTool):
9394
with pytest.raises(
94-
Exception,
95-
match="1 validation error for get-n-rows * num_rows * Input should "
96-
"be a valid string [type=string_type, input_value=2, input_type=int]*",
95+
ValidationError,
96+
match=r"num_rows\s+Input should be a valid string\s+\[type=string_type,\s+input_value=2,\s+input_type=int\]",
9797
):
9898
await get_n_rows_tool(num_rows=2)
9999

0 commit comments

Comments
 (0)