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

Function _make_model_manager

tests/chat/test_testing.py:46–51  ·  view source on GitHub ↗

Build a mock ModelManager.

()

Source from the content-addressed store, hash-verified

44
45
46def _make_model_manager():
47 """Build a mock ModelManager."""
48 mm = MagicMock()
49 mm.get_active_provider.return_value = "openai"
50 mm.get_active_model.return_value = "gpt-4"
51 return mm
52
53
54@pytest.fixture(autouse=True)

Calls

no outgoing calls

Tested by

no test coverage detected