mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-12 07:39:04 +02:00
general: Rename set_colors to sequences
This commit is contained in:
@ -12,6 +12,12 @@ 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, "#999999")
|
||||
|
||||
def test_read_file(self):
|
||||
"""> Read colors from a file."""
|
||||
result = util.read_file("tests/test_files/test_file")
|
||||
|
Reference in New Issue
Block a user