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

Method test_get_tool_bool_from_env

tests/config/test_runtime.py:240–246  ·  view source on GitHub ↗

Test _get_tool_bool from environment.

(self, base_config, monkeypatch)

Source from the content-addressed store, hash-verified

238 assert tools == ["cli_tool"]
239
240 def test_get_tool_bool_from_env(self, base_config, monkeypatch):
241 """Test _get_tool_bool from environment."""
242 monkeypatch.setenv("MCP_CLI_DYNAMIC_TOOLS", "true")
243
244 rc = RuntimeConfig(base_config)
245 result = rc._get_tool_bool("dynamic_tools_enabled")
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."""

Callers

nothing calls this directly

Calls 2

_get_tool_boolMethod · 0.95
RuntimeConfigClass · 0.90

Tested by

no test coverage detected