Skip to content
Snippets Groups Projects
Commit 6398befe authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Add a first test for the CLI

parent e3a7c3b9
No related branches found
No related tags found
No related merge requests found
import unittest
import subprocess
import os
class TestHelp(unittest.TestCase):
def test_help(self):
proc = subprocess.Popen(['./main.py', '--help'], stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment