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
|
@pytest.fixture
|
||||||
def driver():
|
def driver() -> Dummy:
|
||||||
return Dummy()
|
return Dummy()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def usbprinter():
|
def usbprinter() -> Usb:
|
||||||
return Usb()
|
return Usb()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def serialprinter():
|
def serialprinter() -> Serial:
|
||||||
return Serial()
|
return Serial()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def networkprinter():
|
def networkprinter() -> Network:
|
||||||
return Network()
|
return Network()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def fileprinter():
|
def fileprinter() -> File:
|
||||||
return File()
|
return File()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def lpprinter():
|
def lpprinter() -> LP:
|
||||||
return LP()
|
return LP()
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ from hypothesis import given
|
|||||||
from escpos.printer import Dummy
|
from escpos.printer import Dummy
|
||||||
|
|
||||||
|
|
||||||
def get_printer():
|
def get_printer() -> Dummy:
|
||||||
return Dummy(magic_encode_args={"disabled": True, "encoding": "CP437"})
|
return Dummy(magic_encode_args={"disabled": True, "encoding": "CP437"})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user