summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-01-17 09:09:34 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-01-17 09:09:34 +1100
commit2601caead656b41cc69bc2c1d2b1a11c7edf2e2b (patch)
tree93be93ccd957adbc5eab1aca04049450e07407b5 /tests/test_colors.py
parent0a71cb7b2b797a64d7798dd539a37d3a0fb7aed7 (diff)
tests: Update tests.
Diffstat (limited to 'tests/test_colors.py')
-rwxr-xr-xtests/test_colors.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py
index 5efafa0..a3b939c 100755
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -27,6 +27,11 @@ class TestGenColors(unittest.TestCase):
result = colors.file("tests/test_files/test_file2.json")
self.assertEqual(result["wallpaper"], "None")
+ def test_color_import_no_alpha(self):
+ """> Read colors from a file without an alpha."""
+ result = colors.file("tests/test_files/test_file2.json")
+ self.assertEqual(result["alpha"], "100")
+
if __name__ == "__main__":
unittest.main()