mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
16 lines
338 B
Python
16 lines
338 B
Python
import unittest
|
|
import subprocess
|
|
|
|
|
|
class TestCommandLine(unittest.TestCase):
|
|
def test_help(self):
|
|
|
|
args = ["-h", "--help"]
|
|
|
|
for arg in args:
|
|
p = subprocess.run(f"dyn2py {arg}",
|
|
capture_output=True, shell=True)
|
|
|
|
# No error:
|
|
self.assertFalse(p.stderr)
|