summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAaron Eikenberry <aeikenberry@gmail.com>2017-08-02 23:20:51 -0500
committerAaron Eikenberry <aeikenberry@gmail.com>2017-08-02 23:20:51 -0500
commit648ff3c4f0480a5ef528cd3118e9bc4fee393e7e (patch)
treeb4b97b9b1c83d982480982b075ba8fc42c194f52 /tests
parent6a4c7de6510e914b029a36461e2777633eb69060 (diff)
parent8a0b380eb548766e30c6e6d1818bbcbbef84c19a (diff)
Merge branch 'master' of github.com:dylanaraps/pywal
* 'master' of github.com:dylanaraps/pywal: version: bump tests: Fix test colors: fix print colors: Create comment color based on bg. version: bump
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_util.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 5f8e26d..bc551ef 100755
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -13,12 +13,6 @@ COLORS = util.read_file_json("tests/test_files/test_file.json")
class TestUtil(unittest.TestCase):
"""Test the util functions."""
- def test_set_grey(self):
- """> Get grey color based on brightness of color0"""
- colors = [list(COLORS["colors"].values())]
- result = util.set_grey(colors[0])
- self.assertEqual(result, "#666666")
-
def test_read_file(self):
"""> Read colors from a file."""
result = util.read_file("tests/test_files/test_file")
@@ -91,6 +85,11 @@ class TestUtil(unittest.TestCase):
result = util.darken_color("#ffffff", 0.25)
self.assertEqual(result, "#bfbfbf")
+ def test_lighten_color(self):
+ """> Lighten #000000 by 0.25."""
+ result = util.lighten_color("#000000", 0.25)
+ self.assertEqual(result, "#3f3f3f")
+
if __name__ == "__main__":
unittest.main()