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

Method test_fallback_to_str

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

Source from the content-addressed store, hash-verified

117 assert to_serializable(obj) == "from_dict"
118
119 def test_fallback_to_str(self):
120 class Custom:
121 def __str__(self):
122 return "custom_repr"
123
124 assert to_serializable(Custom()) == "custom_repr"

Callers

nothing calls this directly

Calls 2

to_serializableFunction · 0.90
CustomClass · 0.70

Tested by

no test coverage detected