[IMP] Avoiding ERROR in log with tests of report_qweb_pdf_watermark

pull/787/head
Raúl Martín 2023-08-25 17:23:08 +02:00 committed by BT-rmartin
parent 736b8d891b
commit 59cfbb6114
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ class TestReportQwebPdfWatermark(HttpCase):
# test 0
numpages = 0
# pdf_has_usable_pages(self, pdf_watermark)
self.assertFalse(self.env["ir.actions.report"].pdf_has_usable_pages(numpages))
with self.assertLogs(level="ERROR"):
self.assertFalse(
self.env["ir.actions.report"].pdf_has_usable_pages(numpages)
)
# test 1
numpages = 1
self.assertTrue(self.env["ir.actions.report"].pdf_has_usable_pages(numpages))