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

Method test_get_variable_missing

tests/chat/state/test_cache.py:59–62  ·  view source on GitHub ↗

Test getting non-existent variable returns None.

(self, cache)

Source from the content-addressed store, hash-verified

57 assert var.value == 5.5
58
59 def test_get_variable_missing(self, cache):
60 """Test getting non-existent variable returns None."""
61 var = cache.get_variable("nonexistent")
62 assert var is None
63
64 def test_format_state_empty(self, cache):
65 """Test format_state with empty cache."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected