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

Function test_run_command_sync_callable

tests/cli/test_run_command.py:153–162  ·  view source on GitHub ↗

run_command must also execute *sync* callables inside an executor.

()

Source from the content-addressed store, hash-verified

151
152@pytest.mark.asyncio
153async def test_run_command_sync_callable():
154 """run_command must also execute *sync* callables inside an executor."""
155 result = await run_command(
156 dummy_sync_command,
157 config_file="dummy.json",
158 servers=["S1"],
159 extra_params={"extra_arg": None},
160 )
161 assert result == "ok"
162 assert _ALL_TM[0].closed
163
164
165@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

run_commandFunction · 0.90

Tested by

no test coverage detected