diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 23:12:57 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 23:12:57 +1000 |
| commit | 84b134a50da5995b41ddaff42e2b7a92319236d8 (patch) | |
| tree | 220954e9ede66e2491afc27b9982b8c6d8de15a3 /tests/test_main.py | |
| parent | 9b695da635966cd22126193f6d0156780a7c0b80 (diff) | |
tests: test main()
Diffstat (limited to 'tests/test_main.py')
| -rw-r--r-- | tests/test_main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_main.py b/tests/test_main.py index 6054769..b3ea4e3 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -6,8 +6,13 @@ from pywal import __main__ class TestMain(unittest.TestCase): """Test the gen_colors functions.""" + def test_main(self): + """> Test main function.""" + with self.assertRaises(SystemExit): + __main__.main() + def test_no_args(self): - """> Generate a colorscheme and fail.""" + """> Test no args.""" with self.assertRaises(SystemExit): args = __main__.get_args([""]) __main__.process_args(args) |
