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

Method test_get_tool_bool_from_cli

tests/config/test_runtime.py:248–255  ·  view source on GitHub ↗

Test _get_tool_bool from CLI overrides.

(self, base_config)

Source from the content-addressed store, hash-verified

246 assert result is True
247
248 def test_get_tool_bool_from_cli(self, base_config):
249 """Test _get_tool_bool from CLI overrides."""
250 overrides = ConfigOverride()
251 overrides.tools["confirm_tools"] = True
252
253 rc = RuntimeConfig(base_config, overrides)
254 result = rc._get_tool_bool("confirm_tools")
255 assert result is True
256
257 def test_get_tool_int_from_cli(self, base_config):
258 """Test _get_tool_int from CLI overrides."""

Callers

nothing calls this directly

Calls 3

_get_tool_boolMethod · 0.95
ConfigOverrideClass · 0.90
RuntimeConfigClass · 0.90

Tested by

no test coverage detected