TEST extend tests for larger images (grayscale)

This commit is contained in:
Patrick Kanzler 2016-03-03 05:22:16 +01:00
parent 6b56de67a7
commit 5b5c2c0dba
3 changed files with 12 additions and 0 deletions

BIN
test/255x255.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
test/400x400.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -36,3 +36,15 @@ def test_function_image_with_50x50_png():
"""test the image function with 50x50.png (grayscale png)""" """test the image function with 50x50.png (grayscale png)"""
instance = printer.File(devfile=devfile) instance = printer.File(devfile=devfile)
instance.image("test/50x50.png") instance.image("test/50x50.png")
@with_setup(setup_testfile, teardown_testfile)
def test_function_image_with_255x255_png():
"""test the image function with 255x255.png (grayscale png)"""
instance = printer.File(devfile=devfile)
instance.image("test/255x255.png")
@with_setup(setup_testfile, teardown_testfile)
def test_function_image_with_400x400_png():
"""test the image function with 400x400.png (grayscale png)"""
instance = printer.File(devfile=devfile)
instance.image("test/400x400.png")