MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_execute_tool

Function test_execute_tool

tests/chat/test_chat_context.py:378–382  ·  view source on GitHub ↗

Test execute_tool delegation.

(chat_context)

Source from the content-addressed store, hash-verified

376
377@pytest.mark.asyncio
378async def test_execute_tool(chat_context):
379 """Test execute_tool delegation."""
380 await chat_context.initialize()
381 result = await chat_context.execute_tool("tool1", {"arg": "value"})
382 assert result["success"] is True
383
384
385@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.45
execute_toolMethod · 0.45

Tested by

no test coverage detected