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

Method test_cache_result

tests/chat/state/test_manager.py:46–50  ·  view source on GitHub ↗

Test caching results.

(self, manager)

Source from the content-addressed store, hash-verified

44 assert float(resolved["x"]) == pytest.approx(4.2426)
45
46 def test_cache_result(self, manager):
47 """Test caching results."""
48 cached = manager.cache_result("sqrt", {"x": 18}, 4.2426)
49 assert cached.tool_name == "sqrt"
50 assert cached.result == 4.2426
51
52 def test_get_cached_result(self, manager):
53 """Test retrieving cached results."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected