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

Method test_get_tool_int_invalid_value

tests/config/test_runtime.py:266–273  ·  view source on GitHub ↗

Test _get_tool_int with invalid value.

(self, base_config)

Source from the content-addressed store, hash-verified

264 assert result == 5
265
266 def test_get_tool_int_invalid_value(self, base_config):
267 """Test _get_tool_int with invalid value."""
268 overrides = ConfigOverride()
269 overrides.tools["max_concurrency"] = "not_a_number"
270
271 rc = RuntimeConfig(base_config, overrides)
272 result = rc._get_tool_int("max_concurrency")
273 assert result is None
274
275 def test_resolve_timeout_all_types(self, base_config):
276 """Test resolving all timeout types."""

Callers

nothing calls this directly

Calls 3

_get_tool_intMethod · 0.95
ConfigOverrideClass · 0.90
RuntimeConfigClass · 0.90

Tested by

no test coverage detected