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 new file mode 100644 index 0000000..d057ee3 Binary files /dev/null and b/tests/test_files/test.png differ