2017-06-30 02:21:20 +02:00
|
|
|
"""Test imagemagick functions."""
|
2017-06-27 09:30:31 +02:00
|
|
|
import unittest
|
|
|
|
|
2017-07-20 15:39:19 +02:00
|
|
|
from pywal import wal
|
2017-06-27 09:30:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TestGenColors(unittest.TestCase):
|
|
|
|
"""Test the gen_colors functions."""
|
|
|
|
|
2017-06-27 09:43:14 +02:00
|
|
|
def test_gen_colors(self):
|
|
|
|
"""> Generate a colorscheme."""
|
2017-07-20 15:39:19 +02:00
|
|
|
result = wal.create_palette("tests/test_files/test.jpg")
|
2017-07-22 02:01:14 +02:00
|
|
|
self.assertEqual(result["colors"]["color0"], "#0F191A")
|
2017-06-27 09:43:14 +02:00
|
|
|
|
2017-06-27 09:30:31 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|