Files
StarPilot/openpilot/tools/cabana/tests/test_cabana_ui.py
T

14 lines
385 B
Python

import subprocess
from pathlib import Path
from openpilot.common.test import OpenpilotTestCase
CABANA_DIR = Path(__file__).parent.parent
class TestCabanaUi(OpenpilotTestCase):
def test_help(self):
result = subprocess.run(["./cabana", "-h"], cwd=CABANA_DIR, capture_output=True, text=True)
assert result.returncode == 0, result.stderr
assert "Usage:" in result.stderr