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

Function test_run_command_sync_exception

tests/cli/test_run_command.py:216–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215
216def test_run_command_sync_exception():
217 with pytest.raises(RuntimeError, match="Command failure"):
218 run_command_sync(
219 failing_async_command,
220 "dummy.json",
221 ["Sync"],
222 extra_params={},
223 )
224 assert _ALL_TM[0].closed

Callers

nothing calls this directly

Calls 1

run_command_syncFunction · 0.90

Tested by

no test coverage detected