From 78118d396567711442abb8f8bfaa07c0e1f8478f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 21:01:01 +1000 Subject: [PATCH] tests: Test imageamagick fail. --- tests/test_colors.py | 5 +++++ tests/test_files/test.png | Bin 0 -> 82 bytes 2 files changed, 5 insertions(+) create mode 100644 tests/test_files/test.png 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 0000000000000000000000000000000000000000..d057ee32de8eb35acda495e6bca265588dacb6c6 GIT binary patch literal 82 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga%mF?juK)l4Uw%aT1dz++>Eal| caXmQ!$Yx?-e5AO?7|3GqboFyt=akR{0J&omJOBUy literal 0 HcmV?d00001