From 4dbeb62df9a8de92ec040471f68bf9b1550b725d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Dec 2021 00:40:43 +0100 Subject: [PATCH] Allow to import tests without test depends --- tests/test_notification_email.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_notification_email.py b/tests/test_notification_email.py index 21c2f92762..2bbed6d9da 100644 --- a/tests/test_notification_email.py +++ b/tests/test_notification_email.py @@ -6,7 +6,10 @@ import unittest from unittest.mock import ANY, patch from trytond.config import config -from trytond.modules.company.tests import CompanyTestMixin +try: + from trytond.modules.company.tests import CompanyTestMixin +except ImportError: + CompanyTestMixin = object from trytond.modules.notification_email import \ notification as notification_module from trytond.pool import Pool