changeset 888e350c1180 in modules/party_avatar:default
details: 
https://hg.tryton.org/modules/party_avatar?cmd=changeset&node=888e350c1180
description:
        Allow to import tests without test depends
diffstat:

 tests/test_party_avatar.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r f8ec9a18664f -r 888e350c1180 tests/test_party_avatar.py
--- a/tests/test_party_avatar.py        Sat Dec 11 17:58:42 2021 +0100
+++ b/tests/test_party_avatar.py        Mon Dec 13 00:40:43 2021 +0100
@@ -3,7 +3,10 @@
 
 import unittest
 
-from trytond.modules.company.tests import CompanyTestMixin
+try:
+    from trytond.modules.company.tests import CompanyTestMixin
+except ImportError:
+    CompanyTestMixin = object
 from trytond.tests.test_tryton import ModuleTestCase
 from trytond.tests.test_tryton import suite as test_suite
 

Reply via email to