diff --git a/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py b/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py index 4eb66cd96a..a4af8be91d 100644 --- a/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py +++ b/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py @@ -51,7 +51,10 @@ def test_pdf_has_usable_pages(self): # 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))