2017-07-23 09:11:22 +00:00
|
|
|
import escpos.printer as printer
|
|
|
|
from escpos.constants import GS
|
|
|
|
|
|
|
|
|
2023-12-16 22:09:20 +00:00
|
|
|
def test_cut_without_feed() -> None:
|
2017-07-23 09:11:22 +00:00
|
|
|
"""Test cut without feeding paper"""
|
|
|
|
instance = printer.Dummy()
|
|
|
|
instance.cut(feed=False)
|
2023-12-16 21:02:24 +00:00
|
|
|
expected = GS + b"V" + bytes((66,)) + b"\x00"
|
2021-10-30 16:15:22 +00:00
|
|
|
assert instance.output == expected
|