Dummy command for testing.
| 119 | |
| 120 | |
| 121 | class DummyCommand(UnifiedCommand): |
| 122 | """Dummy command for testing.""" |
| 123 | |
| 124 | def __init__(self, name="test", description="Test command"): |
| 125 | super().__init__() |
| 126 | self._name = name |
| 127 | self._description = description |
| 128 | self._parameters = [] |
| 129 | self._aliases = [] |
| 130 | |
| 131 | @property |
| 132 | def name(self) -> str: |
| 133 | return self._name |
| 134 | |
| 135 | @property |
| 136 | def description(self) -> str: |
| 137 | return self._description |
| 138 | |
| 139 | @property |
| 140 | def parameters(self) -> List[CommandParameter]: |
| 141 | return self._parameters |
| 142 | |
| 143 | @property |
| 144 | def aliases(self) -> List[str]: |
| 145 | return self._aliases |
| 146 | |
| 147 | @aliases.setter |
| 148 | def aliases(self, value: List[str]): |
| 149 | self._aliases = value |
| 150 | |
| 151 | async def execute(self, **kwargs) -> CommandResult: |
| 152 | return CommandResult(success=True, output="Test executed") |
| 153 | |
| 154 | |
| 155 | class TestUnifiedCommand: |
no outgoing calls