Test display_description property.
(self)
| 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.""" |