From 72d0ca4e2f4be7969498b226af4243315f2dff0c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 17:50:18 +1000 Subject: [PATCH] tests: Check color length instead of value since the tests will fail on other versions of imageamgick --- tests/test_colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_colors.py b/tests/test_colors.py index 0ce5035..a678d4b 100755 --- a/tests/test_colors.py +++ b/tests/test_colors.py @@ -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__":