Compare commits

..

4 Commits

Author SHA1 Message Date
lukas 59f8adf860 Add test_argument_required 2021-06-25 19:58:08 +02:00
lukas 4623f63bed Move files out of 'src' 2021-06-25 19:57:46 +02:00
lukas 074cb16b1c Update .gitignore 2021-06-25 19:57:09 +02:00
lukas 92dace165b Add Makefile 2021-06-25 19:56:52 +02:00
7 changed files with 27 additions and 3 deletions
+3
View File
@@ -9,3 +9,6 @@ charset = utf-8
[*.py]
indent_style = space
indent_size = 2
[Makefile]
indent_size = tab
+2
View File
@@ -1,3 +1,5 @@
.vscode
dist
src/*.egg-info
__pycache__
.pytest_cache
+7
View File
@@ -0,0 +1,7 @@
init:
pip install -r requirements.txt
test:
py.test tests
.PHONY: init test
View File
+12
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()