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

Method test_get_variable

tests/chat/state/test_cache.py:52–57  ·  view source on GitHub ↗

Test retrieving stored variables.

(self, cache)

Source from the content-addressed store, hash-verified

50 assert var.units == "units/day"
51
52 def test_get_variable(self, cache):
53 """Test retrieving stored variables."""
54 cache.store_variable("sigma", 5.5)
55 var = cache.get_variable("sigma")
56 assert var is not None
57 assert var.value == 5.5
58
59 def test_get_variable_missing(self, cache):
60 """Test getting non-existent variable returns None."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected