summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 21:42:30 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 21:42:30 +1000
commit0ccc55ffdd2aeb824b077a3b7c2d273a904edeeb (patch)
tree07ffc1967e300fe3bb39a5fada17bb0abf2ae838 /tests/test_colors.py
parent06d993bc069ccc3cefeecb2f75f3f64bf8175e22 (diff)
tests: Test json file with no wallpaper.
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 ef365ac..54e7236 100755
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -40,6 +40,11 @@ class TestGenColors(unittest.TestCase):
result = colors.file("tests/test_files/test_file.json")
self.assertEqual(result["colors"]["color0"], "#1F211E")
+ def test_color_import_no_wallpaper(self):
+ """> Read colors from a file without a wallpaper."""
+ result = colors.file("tests/test_files/test_file2.json")
+ self.assertEqual(result["wallpaper"], "None")
+
if __name__ == "__main__":
unittest.main()