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

Function _make_context

tests/commands/cmd/test_cmd_command.py:39–45  ·  view source on GitHub ↗
(provider="openai", model="gpt-4")

Source from the content-addressed store, hash-verified

37
38
39def _make_context(provider="openai", model="gpt-4") -> MagicMock:
40 ctx = MagicMock()
41 ctx.provider = provider
42 ctx.model = model
43 ctx.model_manager = MagicMock()
44 ctx.tool_manager = _make_tool_manager()
45 return ctx
46
47
48@pytest.fixture

Callers 5

test_prompt_basicMethod · 0.70
test_stdin_inputMethod · 0.70
test_input_file_readMethod · 0.70

Calls 1

_make_tool_managerFunction · 0.70

Tested by

no test coverage detected