"""Test imagemagick functions."""
import unittest

from pywal import colors


class TestGenColors(unittest.TestCase):
    """Test the gen_colors functions."""

    def test_gen_colors(self):
        """> Generate a colorscheme."""
        result = colors.get("tests/test_files/test.jpg")
        self.assertEqual(result["colors"]["color0"], "#0D191B")


if __name__ == "__main__":
    unittest.main()

"""Test imagemagick functions."""
import unittest

from pywal import colors


class TestGenColors(unittest.TestCase):
    """Test the gen_colors functions."""

    def test_gen_colors(self):
        """> Generate a colorscheme."""
        result = colors.get("tests/test_files/test.jpg")
        self.assertEqual(len(result["colors"]["color0"]), 7)


if __name__ == "__main__":
    unittest.main()

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

  """Test imagemagick functions."""
  import unittest
  
  from pywal import colors
  
  
  class TestGenColors(unittest.TestCase):
      """Test the gen_colors functions."""
  
      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__":
      unittest.main()
  
Check color length instead of value since the tests will fail on other versions of imageamgick
## Code Before:
"""Test imagemagick functions."""
import unittest

from pywal import colors


class TestGenColors(unittest.TestCase):
    """Test the gen_colors functions."""

    def test_gen_colors(self):
        """> Generate a colorscheme."""
        result = colors.get("tests/test_files/test.jpg")
        self.assertEqual(result["colors"]["color0"], "#0D191B")


if __name__ == "__main__":
    unittest.main()

## Instruction:
Check color length instead of value since the tests will fail on other versions of imageamgick
## Code After:
"""Test imagemagick functions."""
import unittest

from pywal import colors


class TestGenColors(unittest.TestCase):
    """Test the gen_colors functions."""

    def test_gen_colors(self):
        """> Generate a colorscheme."""
        result = colors.get("tests/test_files/test.jpg")
        self.assertEqual(len(result["colors"]["color0"]), 7)


if __name__ == "__main__":
    unittest.main()
