summaryrefslogtreecommitdiff
path: root/tests/test_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 21:14:02 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 21:14:02 +1000
commite8475c05ea28205a02afe84b591133cf0963956c (patch)
tree11ea0fd907db7fb7bcf94377b854b02c72bb1c64 /tests/test_colors.py
parent2fa6215b55f8eb838950ea930033c50cc626e5d9 (diff)
tests: Test file import
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 506bbc9..52957fd 100755
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -28,6 +28,11 @@ class TestGenColors(unittest.TestCase):
colors.get("tests/test_files/test.jpg")
self.assertEqual(fake_out.getvalue().strip(), message)
+ def test_color_import(self):
+ """> Read colors from a file."""
+ result = colors.file("tests/test_files/test_file.json")
+ self.assertEqual(result["colors"]["color0"], "#1F211E")
+
if __name__ == "__main__":
unittest.main()