diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:01:01 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:01:01 +1000 |
| commit | 78118d396567711442abb8f8bfaa07c0e1f8478f (patch) | |
| tree | e9b841fcfd9e4737d13372a7824e446a99f7b472 | |
| parent | f8d02a1307ab570a8542ef9755ee548026f0f6ea (diff) | |
tests: Test imageamagick fail.
| -rwxr-xr-x | tests/test_colors.py | 5 | ||||
| -rw-r--r-- | tests/test_files/test.png | bin | 0 -> 82 bytes |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py index a678d4b..4e471c3 100755 --- a/tests/test_colors.py +++ b/tests/test_colors.py @@ -12,6 +12,11 @@ class TestGenColors(unittest.TestCase): result = colors.get("tests/test_files/test.jpg") self.assertEqual(len(result["colors"]["color0"]), 7) + def test_gen_colors_fail(self): + """> Generate a colorscheme and fail.""" + with self.assertRaises(SystemExit): + colors.get("tests/test_files/test.png") + if __name__ == "__main__": unittest.main() diff --git a/tests/test_files/test.png b/tests/test_files/test.png Binary files differnew file mode 100644 index 0000000..d057ee3 --- /dev/null +++ b/tests/test_files/test.png |
