Skip to content

Commit

Permalink
[IMP] Avoiding ERROR in log with tests of report_qweb_pdf_watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-rmartin committed Aug 25, 2023
1 parent 736b8d8 commit 59cfbb6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 59cfbb6

Please sign in to comment.