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

Method test_serverinfo_display_description

tests/tools/test_models.py:224–239  ·  view source on GitHub ↗

Test display_description property.

(self)

Source from the content-addressed store, hash-verified

222 assert si_disconnected.display_status == "disconnected"
223
224 def test_serverinfo_display_description(self):
225 """Test display_description property."""
226 si_with_desc = ServerInfo(
227 id=1,
228 name="s1",
229 status="ok",
230 tool_count=0,
231 namespace="ns",
232 description="Custom description",
233 )
234 assert si_with_desc.display_description == "Custom description"
235
236 si_no_desc = ServerInfo(
237 id=1, name="s1", status="ok", tool_count=0, namespace="ns"
238 )
239 assert si_no_desc.display_description == "s1 MCP server"
240
241 def test_serverinfo_has_tools(self):
242 """Test has_tools property."""

Callers

nothing calls this directly

Calls 1

ServerInfoClass · 0.90

Tested by

no test coverage detected