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

Method test_content_blocks

tests/planning/test_backends.py:705–707  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

703 assert _extract_error_message(None) is None
704
705 def test_content_blocks(self):
706 blocks = [{"type": "text", "text": "error details"}]
707 assert _extract_error_message(blocks) == "error details"
708
709 def test_ctp_result_with_error(self):
710 """Extract error from CTP ToolExecutionResult."""

Callers

nothing calls this directly

Calls 1

_extract_error_messageFunction · 0.90

Tested by

no test coverage detected