import pytest
from escpos.exceptions import DeviceNotFoundError
from escpos.printer import LP, CupsPrinter, Dummy, File, Network, Serial, Usb, Win32Raw
@pytest.fixture
def driver() -> Dummy:
return Dummy()
def usbprinter() -> Usb:
return Usb()
def serialprinter() -> Serial:
return Serial()
def networkprinter() -> Network:
return Network()
def fileprinter() -> File:
return File()
def lpprinter() -> LP:
return LP()
def win32rawprinter():
return Win32Raw()
def cupsprinter():
return CupsPrinter()
def devicenotfounderror():
return DeviceNotFoundError