Skip to content

Commit

Permalink
Check in an image to demonstrate #14
Browse files Browse the repository at this point in the history
  • Loading branch information
rec committed Apr 18, 2019
1 parent e3cb9c2 commit 3b515bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file added test/hardback/cover_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion test/hardback/cover_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ def test_cover(self):


if __name__ == '__main__':
COVER.render().save(COVER_RESULT)
if True:
COVER.render().save(COVER_RESULT)
else:
cover = Cover(
title='Test',
image=BASE / 'psych.png',
font=Font(size=100))
cover.render().save('bad_image.png')
Binary file added test/hardback/psych.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b515bd

Please sign in to comment.