add more types
This commit is contained in:
parent
125a078630
commit
f0b77c95c8
@ -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()
|
||||
|
||||
|
||||
|
@ -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"})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user