From 59f8adf8609ffaa4b97ec4cfc623828534a46dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 25 Jun 2021 19:58:08 +0200 Subject: [PATCH] Add test_argument_required --- tests/__init__.py | 0 tests/test_arguments.py | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/test_arguments.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_arguments.py b/tests/test_arguments.py new file mode 100644 index 0000000..07bf5b1 --- /dev/null +++ b/tests/test_arguments.py @@ -0,0 +1,12 @@ +from subprocess import CalledProcessError +import unittest + +class FirstTestClass(unittest.TestCase): + + def test_argument_required(self): + import subprocess + with self.assertRaises(CalledProcessError): + subprocess.check_output(['python', 'manga_up']) + +if __name__ == '__main__': + unittest.main() \ No newline at end of file