[MIG] base_report_to_printer: Migration to v14

This commit is contained in:
Alexis de Lattre
2021-01-12 10:50:11 +01:00
committed by hda
parent 627596af61
commit 776b2b426e
34 changed files with 40 additions and 65 deletions

View File

@@ -89,19 +89,6 @@ class TestPrintingServer(TransactionCase):
self.Model.action_update_printers()
self.assertEqual("unavailable", rec_id.status)
@mock.patch("%s.cups" % model)
def test_update_archived_printers(self, cups):
""" It should update status even if printer is archived """
rec_id = self.new_printer()
rec_id.toggle_active()
self.server.refresh()
cups.Connection().getPrinters().get.return_value = False
self.Model.action_update_printers()
self.assertEqual(
"unavailable",
rec_id.status,
)
@mock.patch("%s.cups" % model)
def test_update_jobs_cron(self, cups):
""" It should get all jobs from CUPS server """