diff options
Diffstat (limited to 'tests/test_magic.py')
| -rwxr-xr-x | tests/test_magic.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_magic.py b/tests/test_magic.py new file mode 100755 index 0000000..673420c --- /dev/null +++ b/tests/test_magic.py @@ -0,0 +1,17 @@ +"""Test imagemagick functions.""" +import unittest + +from pywal import magic + + +class TestGenColors(unittest.TestCase): + """Test the gen_colors functions.""" + + def test_gen_colors(self): + """> Generate a colorscheme.""" + result = magic.gen_colors("tests/test_files/test.jpg") + self.assertEqual(result[0], "#0F191A") + + +if __name__ == "__main__": + unittest.main() |
