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

Method test_integer_preserved

tests/planning/test_backends.py:534–536  ·  view source on GitHub ↗

Integer values are returned as-is.

(self)

Source from the content-addressed store, hash-verified

532 assert _extract_result("plain text") == "plain text"
533
534 def test_integer_preserved(self):
535 """Integer values are returned as-is."""
536 assert _extract_result(42) == 42
537
538 def test_nested_mcp_ctp_wrapper(self):
539 """Handle CTP wrapping an MCP dict: CTP(result={isError, content: TR})."""

Callers

nothing calls this directly

Calls 1

_extract_resultFunction · 0.90

Tested by

no test coverage detected