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

Method test_get_tool_int_from_cli

tests/config/test_runtime.py:257–264  ·  view source on GitHub ↗

Test _get_tool_int from CLI overrides.

(self, base_config)

Source from the content-addressed store, hash-verified

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."""
259 overrides = ConfigOverride()
260 overrides.tools["max_concurrency"] = 5
261
262 rc = RuntimeConfig(base_config, overrides)
263 result = rc._get_tool_int("max_concurrency")
264 assert result == 5
265
266 def test_get_tool_int_invalid_value(self, base_config):
267 """Test _get_tool_int with invalid value."""

Callers

nothing calls this directly

Calls 3

_get_tool_intMethod · 0.95
ConfigOverrideClass · 0.90
RuntimeConfigClass · 0.90

Tested by

no test coverage detected