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

Method base_config

tests/config/test_runtime.py:32–44  ·  view source on GitHub ↗

Create a base MCPConfig.

(self, tmp_path)

Source from the content-addressed store, hash-verified

30
31 @pytest.fixture
32 def base_config(self, tmp_path):
33 """Create a base MCPConfig."""
34 config_data = {
35 "defaultProvider": "openai",
36 "defaultModel": "gpt-4",
37 "timeouts": {
38 "streaming_chunk": 45.0,
39 "streaming_global": 300.0,
40 },
41 }
42 config_file = tmp_path / "config.json"
43 config_file.write_text(json.dumps(config_data))
44 return MCPConfig.load_sync(config_file)
45
46 def test_runtime_config_creation(self, base_config):
47 """Test creating RuntimeConfig."""

Callers

nothing calls this directly

Calls 1

load_syncMethod · 0.80

Tested by

no test coverage detected