add more types

This commit is contained in:
Patrick Kanzler 2023-12-16 22:57:33 +01:00
parent 125a078630
commit f0b77c95c8
2 changed files with 7 additions and 7 deletions

View File

@ -5,32 +5,32 @@ from escpos.printer import LP, CupsPrinter, Dummy, File, Network, Serial, Usb, W
@pytest.fixture
def driver():
def driver() -> Dummy:
return Dummy()
@pytest.fixture
def usbprinter():
def usbprinter() -> Usb:
return Usb()
@pytest.fixture
def serialprinter():
def serialprinter() -> Serial:
return Serial()
@pytest.fixture
def networkprinter():
def networkprinter() -> Network:
return Network()
@pytest.fixture
def fileprinter():
def fileprinter() -> File:
return File()
@pytest.fixture
def lpprinter():
def lpprinter() -> LP:
return LP()

View File

@ -15,7 +15,7 @@ from hypothesis import given
from escpos.printer import Dummy
def get_printer():
def get_printer() -> Dummy:
return Dummy(magic_encode_args={"disabled": True, "encoding": "CP437"})