1
0

test_cli.py 281 B

123456789101112
  1. import subprocess
  2. def test_cli_help():
  3. proc_info = subprocess.run(
  4. ["tooncher", "--help"],
  5. check=True,
  6. stdout=subprocess.PIPE,
  7. stderr=subprocess.PIPE,
  8. )
  9. assert b"optional arguments:" in proc_info.stdout
  10. assert not proc_info.stderr