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

Method test_increment_tool_call

tests/chat/state/test_manager.py:560–564  ·  view source on GitHub ↗

Test increment_tool_call.

(self, manager)

Source from the content-addressed store, hash-verified

558 assert manager.get_tool_call_count("math.sqrt") == 1
559
560 def test_increment_tool_call(self, manager):
561 """Test increment_tool_call."""
562 manager.increment_tool_call("sqrt")
563 manager.increment_tool_call("sqrt")
564 assert manager.get_tool_call_count("sqrt") == 2
565
566 def test_increment_tool_call_no_guard(self, manager):
567 """Test increment_tool_call when guard is None."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected