Test output formatting.
(self)
| 178 | assert result.output == "Test executed" |
| 179 | |
| 180 | def test_format_output(self): |
| 181 | """Test output formatting.""" |
| 182 | cmd = DummyCommand() |
| 183 | |
| 184 | # Test with output |
| 185 | result = CommandResult(success=True, output="Test output") |
| 186 | assert cmd.format_output(result, CommandMode.CHAT) == "Test output" |
| 187 | |
| 188 | # Test with error |
| 189 | result = CommandResult(success=False, error="Test error") |
| 190 | assert cmd.format_output(result, CommandMode.CHAT) == "Error: Test error" |
| 191 | |
| 192 | # Test with neither |
| 193 | result = CommandResult(success=True) |
| 194 | assert cmd.format_output(result, CommandMode.CHAT) == "" |
| 195 | |
| 196 | def test_validate_parameters(self): |
| 197 | """Test parameter validation.""" |
nothing calls this directly
no test coverage detected