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

Method test_create_binding

tests/chat/state/test_models.py:71–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 """Tests for ValueBinding model."""
70
71 def test_create_binding(self):
72 binding = ValueBinding(
73 id="v1",
74 tool_name="sqrt",
75 args_hash="abc123",
76 raw_value=4.2426,
77 value_type=ValueType.NUMBER,
78 )
79 assert binding.id == "v1"
80 assert binding.tool_name == "sqrt"
81 assert binding.raw_value == 4.2426
82 assert binding.value_type == ValueType.NUMBER
83
84 def test_typed_value_coercion(self):
85 binding = ValueBinding(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected