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

Method test_command_properties

tests/commands/test_base.py:158–169  ·  view source on GitHub ↗

Test command properties.

(self)

Source from the content-addressed store, hash-verified

156 """Test the UnifiedCommand base class."""
157
158 def test_command_properties(self):
159 """Test command properties."""
160 cmd = DummyCommand()
161
162 assert cmd.name == "test"
163 assert cmd.description == "Test command"
164 assert cmd.aliases == []
165 assert cmd.help_text == "Test command" # Defaults to description
166 assert cmd.modes == CommandMode.ALL
167 assert cmd.parameters == []
168 assert cmd.hidden is False
169 assert cmd.requires_context is True
170
171 @pytest.mark.asyncio
172 async def test_command_execution(self):

Callers

nothing calls this directly

Calls 1

DummyCommandClass · 0.70

Tested by

no test coverage detected