diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:42:30 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:42:30 +1000 |
| commit | 0ccc55ffdd2aeb824b077a3b7c2d273a904edeeb (patch) | |
| tree | 07ffc1967e300fe3bb39a5fada17bb0abf2ae838 /tests/test_colors.py | |
| parent | 06d993bc069ccc3cefeecb2f75f3f64bf8175e22 (diff) | |
tests: Test json file with no wallpaper.
Diffstat (limited to 'tests/test_colors.py')
| -rwxr-xr-x | tests/test_colors.py | 5 |
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() |
