diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 18:13:38 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 18:13:38 +0100 |
| commit | 4601ce03a1b41158f94e1e79edacf8540a89d15f (patch) | |
| tree | 74d00d8dc24a1a400a82f4096b2fc0895b575593 /tests | |
| parent | 2c098221f4ed09d772df9bece5c71912f1c5e849 (diff) | |
| download | deck-it-4601ce03a1b41158f94e1e79edacf8540a89d15f.tar.gz deck-it-4601ce03a1b41158f94e1e79edacf8540a89d15f.zip | |
feat: launcher, adb tunnel, Slackware autostart
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_launcher.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_launcher.py b/tests/test_launcher.py new file mode 100644 index 0000000..bfcbdec --- /dev/null +++ b/tests/test_launcher.py @@ -0,0 +1,20 @@ +import subprocess +import unittest +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent + + +class Launcher(unittest.TestCase): + def test_syntax(self): + self.assertEqual(subprocess.run(["bash", "-n", str(ROOT / "deck-it")]).returncode, 0) + + def test_env_prints_keys(self): + out = subprocess.run(["bash", str(ROOT / "deck-it"), "env"], + capture_output=True, text=True, cwd=ROOT).stdout + for key in ("MON=", "PORT=", "VNC_PORT="): + self.assertIn(key, out) + + +if __name__ == "__main__": + unittest.main() |
