aboutsummaryrefslogtreecommitdiff
path: root/tests/test_magic.py
blob: a3434df26566330658e822b5bbb94092c7bbb58d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Test imagemagick functions."""
import unittest

from pywal import wal


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

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


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