summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-24 00:00:35 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-24 00:00:35 +1000
commit7ebc29ff3406feb973eb9ad81863b33a918047c3 (patch)
tree5260d14656d8026ef4a505b3792e44b5daab818d /tests/test_colors.py
parentb678a60a239cf08d7eb30906aa28c401c80e3dba (diff)
tests: Remove shitty tests
Diffstat (limited to 'tests/test_colors.py')
-rwxr-xr-xtests/test_colors.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py
index 54e7236..5efafa0 100755
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -1,11 +1,7 @@
"""Test imagemagick functions."""
import unittest
-import unittest.mock
-import io
-import pathlib
from pywal import colors
-from pywal import util
class TestGenColors(unittest.TestCase):
@@ -21,20 +17,6 @@ class TestGenColors(unittest.TestCase):
with self.assertRaises(SystemExit):
colors.get("tests/test_files/test.png")
- def test_color_cache(self):
- """> Test importing a cached scheme."""
- # Create the file to import.
- cache_dir = pathlib.Path("/tmp/wal2/")
- util.save_file("true", cache_dir / "schemes"
- / "tests_test_files_test_jpg.json")
-
- # Since this function just prints a message we redirect
- # it's output so that we can read it.
- message = "colors: Found cached colorscheme."
- with unittest.mock.patch('sys.stdout', new=io.StringIO()) as fake_out:
- colors.get("tests/test_files/test.jpg", cache_dir)
- self.assertEqual(fake_out.getvalue().strip(), message)
-
def test_color_import(self):
"""> Read colors from a file."""
result = colors.file("tests/test_files/test_file.json")