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

Function test_run_command_success

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

Source from the content-addressed store, hash-verified

137# --------------------------------------------------------------------------- #
138@pytest.mark.asyncio
139async def test_run_command_success():
140 result = await run_command(
141 dummy_async_command,
142 config_file="dummy.json",
143 servers=["S1"],
144 extra_params={"extra_arg": "foo"},
145 )
146 assert result == "ok-foo"
147 # ToolManager initialised & closed
148 tm = _ALL_TM[0]
149 assert tm.initialized and tm.closed
150
151
152@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

run_commandFunction · 0.90

Tested by

no test coverage detected