1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

move function tests

This commit is contained in:
Patrick Kanzler
2023-12-16 00:19:00 +01:00
parent de8cf0086f
commit 053087e253
15 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/python
import pytest
import escpos.printer as printer
from escpos.exceptions import CashDrawerError
def test_raise_CashDrawerError():
"""should raise an error if the sequence is invalid."""
instance = printer.Dummy()
with pytest.raises(CashDrawerError):
# call with sequence that is too long
instance.cashdraw([1, 1, 1, 1, 1, 1])