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

Method test_bind_creates_binding

tests/chat/state/test_bindings.py:17–23  ·  view source on GitHub ↗

Test that bind creates a new binding.

(self, manager)

Source from the content-addressed store, hash-verified

15 return BindingManager()
16
17 def test_bind_creates_binding(self, manager):
18 """Test that bind creates a new binding."""
19 binding = manager.bind("sqrt", {"x": 18}, 4.2426)
20 assert binding.id == "v1"
21 assert binding.tool_name == "sqrt"
22 assert binding.raw_value == 4.2426
23 assert binding.value_type == ValueType.NUMBER
24
25 def test_bind_increments_id(self, manager):
26 """Test that bind increments ID for each binding."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected