mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
TEST extend tests for larger images (grayscale)
This commit is contained in:
BIN
test/255x255.png
Normal file
BIN
test/255x255.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
test/400x400.png
Normal file
BIN
test/400x400.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
@@ -36,3 +36,15 @@ def test_function_image_with_50x50_png():
|
||||
"""test the image function with 50x50.png (grayscale png)"""
|
||||
instance = printer.File(devfile=devfile)
|
||||
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")
|
||||
|
Reference in New Issue
Block a user