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

Method mock_to_thread

tests/interactive/test_shell_coverage.py:217–218  ·  view source on GitHub ↗
(fn, *args)

Source from the content-addressed store, hash-verified

215 mock_deps["adapter"].handle_command = AsyncMock(side_effect=handle_side_effect)
216
217 async def mock_to_thread(fn, *args):
218 return next(inputs)
219
220 with patch("asyncio.to_thread", side_effect=mock_to_thread):
221 result = await interactive_mode()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected