tests: Add a real image file.

This commit is contained in:
Dylan Araps 2017-06-27 17:43:14 +10:00
parent dbba94976c
commit 2cee85a15e
2 changed files with 5 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -17,6 +17,11 @@ class TestGenColors(unittest.TestCase):
result = gen_colors.get_image("tests/test_files")
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__":
unittest.main()