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

Method test_bind_increments_id

tests/chat/state/test_bindings.py:25–30  ·  view source on GitHub ↗

Test that bind increments ID for each binding.

(self, manager)

Source from the content-addressed store, hash-verified

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."""
27 b1 = manager.bind("sqrt", {"x": 18}, 4.2426)
28 b2 = manager.bind("multiply", {"a": 2, "b": 3}, 6)
29 assert b1.id == "v1"
30 assert b2.id == "v2"
31
32 def test_bind_with_aliases(self, manager):
33 """Test binding with aliases."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected