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

Method test_tool_raw_output

tests/commands/cmd/test_cmd_command.py:165–174  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

163
164 @pytest.mark.asyncio
165 async def test_tool_raw_output(self, cmd):
166 tm = _make_tool_manager()
167 with patch("builtins.print") as mock_print:
168 result = await cmd.execute(
169 tool="echo", tool_manager=tm, raw=True
170 )
171 assert result.success is True
172 # Raw mode: json.dumps without indent
173 printed = mock_print.call_args[0][0]
174 assert "\n" not in printed # compact JSON
175
176
177# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

_make_tool_managerFunction · 0.70
executeMethod · 0.45

Tested by

no test coverage detected