Test command properties.
(self)
| 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): |
nothing calls this directly
no test coverage detected