Skip to content

Commit 5e7247d

Browse files
committed
chore: Fix e2e tests
1 parent ab2f074 commit 5e7247d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,7 @@ async def test_run_tool_with_optional_id_provided(self, toolbox: ToolboxClient):
300300

301301
response = await tool(email="[email protected]", id=1)
302302
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"
310304

311305
async def test_run_tool_with_optional_id_null(self, toolbox: ToolboxClient):
312306
"""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
331325
async def test_run_tool_with_required_param_null(self, toolbox: ToolboxClient):
332326
"""Invoke a tool without its required parameter."""
333327
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'"):
335329
await tool(email=None, id=5, data="row5")
336330

337331
async def test_run_tool_with_all_default_params(self, toolbox: ToolboxClient):

0 commit comments

Comments
 (0)