mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 03:13:47 +01:00
tests: Test file import
This commit is contained in:
parent
2fa6215b55
commit
e8475c05ea
@ -28,6 +28,11 @@ class TestGenColors(unittest.TestCase):
|
|||||||
colors.get("tests/test_files/test.jpg")
|
colors.get("tests/test_files/test.jpg")
|
||||||
self.assertEqual(fake_out.getvalue().strip(), message)
|
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__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user