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

Method test_get_by_alias

tests/chat/state/test_bindings.py:44–49  ·  view source on GitHub ↗

Test getting binding by alias.

(self, manager)

Source from the content-addressed store, hash-verified

42 assert binding.raw_value == 4.2426
43
44 def test_get_by_alias(self, manager):
45 """Test getting binding by alias."""
46 manager.bind("sqrt", {"x": 666}, 25.807, aliases=["sigma_LT"])
47 binding = manager.get("sigma_LT")
48 assert binding is not None
49 assert binding.raw_value == 25.807
50
51 def test_get_nonexistent(self, manager):
52 """Test getting non-existent binding returns None."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected