tests: Check color length instead of value since the tests will fail on other versions of imageamgick

This commit is contained in:
Dylan Araps 2017-07-23 17:50:18 +10:00
parent d2ab5077e7
commit 72d0ca4e2f

View File

@ -10,7 +10,7 @@ class TestGenColors(unittest.TestCase):
def test_gen_colors(self):
"""> Generate a colorscheme."""
result = colors.get("tests/test_files/test.jpg")
self.assertEqual(result["colors"]["color0"], "#0D191B")
self.assertEqual(len(result["colors"]["color0"]), 7)
if __name__ == "__main__":