MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / test_tool_execute

Function test_tool_execute

tests/test_tool_schema.py:246–253  ·  view source on GitHub ↗

Test that tools can be executed.

()

Source from the content-addressed store, hash-verified

244
245@pytest.mark.asyncio
246async def test_tool_execute():
247 """Test that tools can be executed."""
248 tool = MockWeatherTool()
249 result = await tool.execute(location="Tokyo")
250
251 assert isinstance(result, ToolResult)
252 assert result.success is True
253 assert result.content == "Weather data"
254
255
256if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

executeMethod · 0.95
MockWeatherToolClass · 0.85

Tested by

no test coverage detected