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

Method test_dict_content_items

tests/utils/test_serialization.py:115–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 assert to_serializable(obj) == ["a", "b"]
114
115 def test_dict_content_items(self):
116 obj = SimpleNamespace(content=[{"text": "from_dict"}])
117 assert to_serializable(obj) == "from_dict"
118
119 def test_fallback_to_str(self):
120 class Custom:

Callers

nothing calls this directly

Calls 1

to_serializableFunction · 0.90

Tested by

no test coverage detected