diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 17:43:14 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 17:43:14 +1000 |
| commit | 2cee85a15ed50a7ef3fc94b4fb47ba4d5cb44a51 (patch) | |
| tree | c59bfb7393a3e36570ae2b24ccbf224ed33f5e49 /tests | |
| parent | dbba94976cee6ab155ab6fc1bcf3344c6228c516 (diff) | |
tests: Add a real image file.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_files/test.jpg | bin | 0 -> 8074 bytes | |||
| -rwxr-xr-x | tests/test_gen_colors.py | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_files/test.jpg b/tests/test_files/test.jpg Binary files differindex e69de29..b613ed0 100644 --- a/tests/test_files/test.jpg +++ b/tests/test_files/test.jpg diff --git a/tests/test_gen_colors.py b/tests/test_gen_colors.py index 8bab35a..18ba821 100755 --- a/tests/test_gen_colors.py +++ b/tests/test_gen_colors.py @@ -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() |
