From 2601caead656b41cc69bc2c1d2b1a11c7edf2e2b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 17 Jan 2018 09:09:34 +1100 Subject: tests: Update tests. --- tests/test_colors.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_colors.py') 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() -- cgit v1.2.3