tests: Test imageamagick fail.

This commit is contained in:
Dylan Araps 2017-07-23 21:01:01 +10:00
parent f8d02a1307
commit 78118d3965
2 changed files with 5 additions and 0 deletions

View File

@ -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()

BIN
tests/test_files/test.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B