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

Method test_serverinfo_fields

tests/tools/test_models.py:136–143  ·  view source on GitHub ↗

Test ServerInfo basic fields.

(self)

Source from the content-addressed store, hash-verified

134 """Test ServerInfo Pydantic model."""
135
136 def test_serverinfo_fields(self):
137 """Test ServerInfo basic fields."""
138 si = ServerInfo(id=1, name="s1", status="Up", tool_count=5, namespace="ns")
139 assert si.id == 1
140 assert si.name == "s1"
141 assert si.status == "Up"
142 assert si.tool_count == 5
143 assert si.namespace == "ns"
144
145 def test_serverinfo_defaults(self):
146 """Test ServerInfo default values."""

Callers

nothing calls this directly

Calls 1

ServerInfoClass · 0.90

Tested by

no test coverage detected