diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-30 10:21:20 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-30 10:21:20 +1000 |
| commit | 5015f2706c58e2f697cba7541f92d16bee08df68 (patch) | |
| tree | ba8f4fdf7e3345b5fcc9a2ee585395036adbaba9 /tests/test_magic.py | |
| parent | 23571cc6207ec825749e4d999993b4a2568975b6 (diff) | |
general: Rename gen_colors to magic
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() |
