summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-22 22:26:49 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-22 22:26:49 +1000
commitde47c1beaaa77ee6f50235daba735ccc98ad608c (patch)
tree03fca45aead0204d0b8619d775077f1046230ba0 /tests/test_colors.py
parenta4ea6a4f7addc3ada3c466a763331d793190a342 (diff)
api: Remove wal.py
Diffstat (limited to 'tests/test_colors.py')
-rwxr-xr-xtests/test_colors.py17
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()