Files
dyn2py/tests/test_CommandLine.py
2023-03-10 20:45:07 +01:00

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)