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

Method test_serverinfo_defaults

tests/tools/test_models.py:145–156  ·  view source on GitHub ↗

Test ServerInfo default values.

(self)

Source from the content-addressed store, hash-verified

143 assert si.namespace == "ns"
144
145 def test_serverinfo_defaults(self):
146 """Test ServerInfo default values."""
147 si = ServerInfo(id=1, name="s1", status="ok", tool_count=0, namespace="ns")
148 assert si.enabled is True
149 assert si.connected is False
150 assert si.transport == "stdio"
151 assert si.capabilities == {}
152 assert si.description is None
153 assert si.version is None
154 assert si.command is None
155 assert si.args == []
156 assert si.env == {}
157
158 def test_serverinfo_is_healthy(self):
159 """Test is_healthy property."""

Callers

nothing calls this directly

Calls 1

ServerInfoClass · 0.90

Tested by

no test coverage detected