mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-07-06 01:00:06 +02:00
tests: Test file import
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user