diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-22 22:26:49 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-22 22:26:49 +1000 |
| commit | de47c1beaaa77ee6f50235daba735ccc98ad608c (patch) | |
| tree | 03fca45aead0204d0b8619d775077f1046230ba0 /tests/test_colors.py | |
| parent | a4ea6a4f7addc3ada3c466a763331d793190a342 (diff) | |
api: Remove wal.py
Diffstat (limited to 'tests/test_colors.py')
| -rwxr-xr-x | tests/test_colors.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py new file mode 100755 index 0000000..e83c54d --- /dev/null +++ b/tests/test_colors.py @@ -0,0 +1,17 @@ +"""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(result["colors"]["color0"], "#0F191A") + + +if __name__ == "__main__": + unittest.main() |
