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

Method test_empty_tools

tests/chat/test_testing.py:216–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214
215 @pytest.mark.asyncio
216 async def test_empty_tools(self):
217 from mcp_cli.chat.testing import TestChatContext
218
219 sm = _make_stream_manager(tools=[], server_info=[])
220 mm = _make_model_manager()
221 ctx = TestChatContext(sm, mm)
222
223 await ctx._initialize_tools()
224
225 assert ctx.tools == []
226 assert ctx.openai_tools == []
227 assert ctx.tool_to_server_map == {}
228
229 @pytest.mark.asyncio
230 async def test_tool_parameters_in_openai_format(self):

Callers

nothing calls this directly

Calls 4

_initialize_toolsMethod · 0.95
TestChatContextClass · 0.90
_make_stream_managerFunction · 0.85
_make_model_managerFunction · 0.70

Tested by

no test coverage detected