mirror of
https://github.com/python-escpos/python-escpos
synced 2025-12-02 09:43:30 +00:00
Test the 'printers' property
This commit is contained in:
@@ -65,6 +65,7 @@ def test_open(cupsprinter, caplog, mocker):
|
||||
mocker.patch("escpos.printer.CupsPrinter.printers", new={"test_printer": "Test"})
|
||||
|
||||
cupsprinter.printer_name = "test_printer"
|
||||
assert cupsprinter.printer_name in cupsprinter.printers
|
||||
|
||||
with caplog.at_level(logging.INFO):
|
||||
cupsprinter.open()
|
||||
|
||||
Reference in New Issue
Block a user