Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nolze committed Jan 5, 2021
1 parent d875673 commit dfdf42c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import subprocess
import unittest


class CLITest(unittest.TestCase):
def test_cli(self):
# Python 3:
# cp = subprocess.run("./tests/test_cli.sh", shell=True)
# self.assertEqual(cp.returncode, 0)
# For Python 2 compat:
returncode = subprocess.call("./tests/test_cli.sh", shell=True)
self.assertEqual(returncode, 0)


if __name__ == "__main__":
unittest.main()

0 comments on commit dfdf42c

Please sign in to comment.