mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 09:23:08 +01:00
18 lines
398 B
Python
Executable File
18 lines
398 B
Python
Executable File
"""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()
|