mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-20 09:37:42 +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")
|
||||
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
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