|
@@ -75,8 +75,8 @@ class TestToolsMcpIntegration:
|
|
|
}
|
|
}
|
|
|
client_rest.execute.assert_called_once_with(
|
|
client_rest.execute.assert_called_once_with(
|
|
|
method=HTTPMethod.DELETE,
|
|
method=HTTPMethod.DELETE,
|
|
|
- endpoint="/rest/tools/resource",
|
|
|
|
|
- json={"id": 1},
|
|
|
|
|
|
|
+ endpoint="/rest/tools/resource/1",
|
|
|
|
|
+ params={}
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
async def test_create_template(self, mcp_session: ClientSession, client_rest: MagicMock) -> None:
|
|
async def test_create_template(self, mcp_session: ClientSession, client_rest: MagicMock) -> None:
|
|
@@ -171,7 +171,7 @@ class TestToolsMcpIntegration:
|
|
|
"name": "test-category",
|
|
"name": "test-category",
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
- result = await call_tool(mcp_session, "createCategory", {"category": "Test Category"})
|
|
|
|
|
|
|
+ result = await call_tool(mcp_session, "createCategory", {"name": "Test Category"})
|
|
|
assert result == {
|
|
assert result == {
|
|
|
"code": "200",
|
|
"code": "200",
|
|
|
"data": {
|
|
"data": {
|
|
@@ -182,7 +182,7 @@ class TestToolsMcpIntegration:
|
|
|
client_rest.execute.assert_called_once_with(
|
|
client_rest.execute.assert_called_once_with(
|
|
|
method=HTTPMethod.POST,
|
|
method=HTTPMethod.POST,
|
|
|
endpoint="/rest/tools/category",
|
|
endpoint="/rest/tools/category",
|
|
|
- json={"category": "Test Category"},
|
|
|
|
|
|
|
+ json={"name": "Test Category"},
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
async def test_update_category(self, mcp_session: ClientSession, client_rest: MagicMock) -> None:
|
|
async def test_update_category(self, mcp_session: ClientSession, client_rest: MagicMock) -> None:
|