1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

add test for empty call

This commit is contained in:
Patrick Kanzler
2023-09-03 23:45:44 +02:00
parent 16eaa0bee4
commit 7312e78b64
2 changed files with 20 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ import escpos.printer as printer
from escpos.constants import SET_FONT, TXT_NORMAL, TXT_SIZE, TXT_STYLE
def test_default_values():
def test_default_values_with_default():
"""Default test, please copy and paste this block to test set method calls"""
instance = printer.Dummy()
instance.set_with_default()
@@ -24,6 +24,14 @@ def test_default_values():
assert instance.output == b"".join(expected_sequence)
def test_default_values():
"""Default test"""
instance = printer.Dummy()
instance.set()
assert instance.output == b""
# Size tests