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