Compare commits
4 Commits
e65e16d37b
...
59f8adf860
Author | SHA1 | Date | |
---|---|---|---|
59f8adf860 | |||
4623f63bed | |||
074cb16b1c | |||
92dace165b |
@ -8,4 +8,7 @@ charset = utf-8
|
||||
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
indent_size = 2
|
||||
|
||||
[Makefile]
|
||||
indent_size = tab
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.vscode
|
||||
dist
|
||||
src/*.egg-info
|
||||
src/*.egg-info
|
||||
__pycache__
|
||||
.pytest_cache
|
7
Makefile
Normal file
7
Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
init:
|
||||
pip install -r requirements.txt
|
||||
|
||||
test:
|
||||
py.test tests
|
||||
|
||||
.PHONY: init test
|
@ -18,4 +18,4 @@ if __name__ == '__main__':
|
||||
'-n', '--notify', type=str, default=None, help="Apprise notification string."
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
args = parser.parse_args()
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
12
tests/test_arguments.py
Normal file
12
tests/test_arguments.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user