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

Method test_get_config_function

tests/config/test_config_manager.py:404–415  ·  view source on GitHub ↗

Test get_config module function.

(self, tmp_path)

Source from the content-addressed store, hash-verified

402 """Test module-level helper functions."""
403
404 def test_get_config_function(self, tmp_path):
405 """Test get_config module function."""
406 config_file = tmp_path / "config.json"
407 config_file.write_text(json.dumps({"mcpServers": {}}))
408
409 # Reset and initialize
410 manager = ConfigManager()
411 manager.reset()
412 initialize_config(config_file)
413
414 config = get_config()
415 assert config is not None
416
417 def test_initialize_config_function(self, tmp_path):
418 """Test initialize_config module function."""

Callers

nothing calls this directly

Calls 4

resetMethod · 0.95
ConfigManagerClass · 0.90
initialize_configFunction · 0.90
get_configFunction · 0.90

Tested by

no test coverage detected