mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 09:23:08 +01:00
tests: Add a real image file.
This commit is contained in:
parent
dbba94976c
commit
2cee85a15e
Binary file not shown.
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 7.9 KiB |
@ -17,6 +17,11 @@ class TestGenColors(unittest.TestCase):
|
|||||||
result = gen_colors.get_image("tests/test_files")
|
result = gen_colors.get_image("tests/test_files")
|
||||||
self.assertEqual(result, "tests/test_files/test.jpg")
|
self.assertEqual(result, "tests/test_files/test.jpg")
|
||||||
|
|
||||||
|
def test_gen_colors(self):
|
||||||
|
"""> Generate a colorscheme."""
|
||||||
|
result = gen_colors.gen_colors("tests/test_files/test.jpg")
|
||||||
|
self.assertEqual(result[0], "#0F191A")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user