Test executing the exit command.
(self, command)
| 21 | |
| 22 | @pytest.mark.asyncio |
| 23 | async def test_execute(self, command): |
| 24 | """Test executing the exit command.""" |
| 25 | result = await command.execute() |
| 26 | |
| 27 | # Check result |
| 28 | assert result.success is True |
| 29 | assert result.should_exit is True |
| 30 | assert "Goodbye" in result.output or result.output is not None |