Skip to content

Commit

Permalink
Merge PR #787 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by hbrunn
  • Loading branch information
OCA-git-bot committed Aug 28, 2023
2 parents 736b8d8 + 59cfbb6 commit 28e3f3e
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 28e3f3e

Please sign in to comment.