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

Function test_build_server_tool_groups

tests/chat/test_chat_context.py:766–779  ·  view source on GitHub ↗

_build_server_tool_groups returns correct grouping.

(chat_context)

Source from the content-addressed store, hash-verified

764
765@pytest.mark.asyncio
766async def test_build_server_tool_groups(chat_context):
767 """_build_server_tool_groups returns correct grouping."""
768 await chat_context.initialize()
769 groups = chat_context._build_server_tool_groups()
770
771 assert len(groups) == 2
772
773 names = {g.name for g in groups}
774 assert names == {"srv1", "srv2"}
775
776 for group in groups:
777 assert group.name
778 assert isinstance(group.tools, list)
779 assert len(group.tools) >= 1
780
781
782@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.45

Tested by

no test coverage detected