manga_up/tests/test_arguments.py

13 lines
306 B
Python
Raw Normal View History

2021-06-25 17:58:08 +00:00
from subprocess import CalledProcessError
import unittest
2021-06-25 18:45:49 +00:00
import subprocess
2021-06-25 17:58:08 +00:00
2021-06-25 18:45:49 +00:00
class ArgumentTestClass(unittest.TestCase):
2021-06-25 17:58:08 +00:00
def test_argument_required(self):
with self.assertRaises(CalledProcessError):
subprocess.check_output(['python', 'manga_up'])
if __name__ == '__main__':
unittest.main()