Fix mcp_server CI test (#143898)

This commit is contained in:
Jan Bouwhuis
2025-04-29 20:40:50 +02:00
committed by GitHub
parent 92da640d4c
commit 05f393560f

View File

@@ -315,7 +315,7 @@ async def test_mcp_tools_list(
# are converted correctly.
tool = next(iter(tool for tool in result.tools if tool.name == "HassTurnOn"))
assert tool.name == "HassTurnOn"
assert tool.description == "Turns on/opens a device or entity"
assert tool.description is not None
assert tool.inputSchema
assert tool.inputSchema.get("type") == "object"
properties = tool.inputSchema.get("properties")