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

Method test_creation

tests/commands/models/test_server_models.py:64–72  ·  view source on GitHub ↗

Test creating status info.

(self)

Source from the content-addressed store, hash-verified

62 """Test ServerStatusInfo model."""
63
64 def test_creation(self):
65 """Test creating status info."""
66 status = ServerStatusInfo(
67 icon="✅", status="Connected", reason="Server is online"
68 )
69
70 assert status.icon == "✅"
71 assert status.status == "Connected"
72 assert status.reason == "Server is online"
73
74 def test_required_fields(self):
75 """Test that all fields are required."""

Callers

nothing calls this directly

Calls 1

ServerStatusInfoClass · 0.90

Tested by

no test coverage detected