mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-20 17:47:44 +02:00
tests: Test imageamagick fail.
This commit is contained in:
parent
f8d02a1307
commit
78118d3965
@ -12,6 +12,11 @@ class TestGenColors(unittest.TestCase):
|
|||||||
result = colors.get("tests/test_files/test.jpg")
|
result = colors.get("tests/test_files/test.jpg")
|
||||||
self.assertEqual(len(result["colors"]["color0"]), 7)
|
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__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
BIN
tests/test_files/test.png
Normal file
BIN
tests/test_files/test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 B |
Loading…
x
Reference in New Issue
Block a user