Add test_argument_required

This commit is contained in:
Lukáš Kucharczyk 2021-06-25 19:58:08 +02:00
parent 4623f63bed
commit 59f8adf860
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
2 changed files with 12 additions and 0 deletions

0
tests/__init__.py Normal file
View File

12
tests/test_arguments.py Normal file
View File

@ -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()