[FIX] base: skip pdf rendering tests if pdfminer is not installed
The unit tests introduced in4820be3conly work if pdfminer is installed. As it's an optional dependency, it may not be installed in some environments. This commit skips the tests if pdfminer is not installed. See also:6fa4dbf2closes odoo/odoo#147720 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import io
|
||||
import logging
|
||||
from base64 import b64decode
|
||||
from unittest import skipIf
|
||||
|
||||
import odoo
|
||||
import odoo.tests
|
||||
@@ -171,6 +172,7 @@ class Box:
|
||||
return (self.y1, self.x1, self.y2, self.x2) < (other.y1, other.x1, other.y2, other.x2)
|
||||
|
||||
|
||||
@skipIf(pdfminer is False, "pdfminer not installed")
|
||||
class TestReportsRenderingCommon(odoo.tests.HttpCase):
|
||||
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user