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

Method test_async_callback_result

tests/planning/test_executor.py:1196–1201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1194
1195 @pytest.mark.asyncio
1196 async def test_async_callback_result(self):
1197 async def async_callback(x):
1198 return x * 2
1199
1200 result = await _maybe_await(async_callback(5))
1201 assert result == 10
1202
1203
1204# ── Tests: Extract Tool Call ──────────────────────────────────────────────────

Callers

nothing calls this directly

Calls 1

_maybe_awaitFunction · 0.90

Tested by

no test coverage detected