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

Method test_get_numeric_values

tests/chat/state/test_bindings.py:170–178  ·  view source on GitHub ↗

Test get_numeric_values returns all numeric values.

(self, manager)

Source from the content-addressed store, hash-verified

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."""
172 manager.bind("sqrt", {"x": 18}, 4.2426)
173 manager.bind("multiply", {"a": 2, "b": 3}, 6)
174 manager.bind("echo", {"msg": "hello"}, "hello") # non-numeric
175 values = manager.get_numeric_values()
176 assert 4.2426 in values
177 assert 6.0 in values
178 assert len(values) == 2
179
180 def test_get_numeric_values_empty(self, manager):
181 """Test get_numeric_values with no bindings."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected