summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylanaraps@users.noreply.github.com>2017-07-23 15:37:14 +1000
committerGitHub <noreply@github.com>2017-07-23 15:37:14 +1000
commit0c1d76e2b3611b541316dc8d7eb67f18cec5e7f2 (patch)
treeaaf8141c62789dcfc4f72af24ae96df71459a084 /tests/test_colors.py
parent9c871ec567504c2566c4ce9f3d382f544cb62b57 (diff)
parent07b8ad8e0d97f54277c2e744f745ba3e47d0e53c (diff)
Merge pull request #52 from dylanaraps/api
api: Start work on a proper api.
Diffstat (limited to 'tests/test_colors.py')
-rwxr-xr-x[-rw-r--r--]tests/test_colors.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py
index 077600e..e83c54d 100644..100755
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -1,20 +1,16 @@
-"""Test image functions."""
+"""Test imagemagick functions."""
import unittest
-from pywal import image
+from pywal import colors
-class TestImage(unittest.TestCase):
- """Test image functions."""
- def test_get_img(self):
- """> Validate image file."""
- result = image.get_image("tests/test_files/test.jpg")
- self.assertEqual(result, "tests/test_files/test.jpg")
+class TestGenColors(unittest.TestCase):
+ """Test the gen_colors functions."""
- def test_get_img_dir(self):
- """> Validate image directory."""
- result = image.get_image("tests/test_files")
- self.assertEqual(result, "tests/test_files/test.jpg")
+ 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__":