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

Method test_add_alias_duplicate

tests/chat/state/test_bindings.py:161–168  ·  view source on GitHub ↗

Test adding same alias twice.

(self, manager)

Source from the content-addressed store, hash-verified

159 assert result is False
160
161 def test_add_alias_duplicate(self, manager):
162 """Test adding same alias twice."""
163 manager.bind("sqrt", {"x": 18}, 4.2426, aliases=["sigma"])
164 result = manager.add_alias("v1", "sigma")
165 assert result is True
166 # Alias should not be duplicated
167 binding = manager.get("v1")
168 assert binding.aliases.count("sigma") == 1
169
170 def test_get_numeric_values(self, manager):
171 """Test get_numeric_values returns all numeric values."""

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected