[MIG] printer_zpl2 to v13 (continue)

This commit is contained in:
ahenriquez
2020-03-05 12:26:39 +01:00
committed by mreficent
parent 4291cca6ca
commit 7c10f698ba
8 changed files with 306 additions and 307 deletions

View File

@@ -67,8 +67,11 @@ class TestPrintingLabelZpl2(TransactionCase):
def test_print_empty_label(self, cups):
""" Check that printing an empty label works """
label = self.new_label()
file_name = 'test.zpl'
label.print_label(self.printer, self.printer)
cups.Connection().printFile.assert_called_once()
cups.Connection().printFile.assert_called_once_with(
printer.system_name, file_name, file_name, options={}
)
def test_empty_label_contents(self):
""" Check contents of an empty label """