diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index e14273805c6d466142500437ca688aa683dc6845..26fff8bd7d3b3b242261d1e620db6565c70e152b 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -54,6 +54,13 @@ except ImportError: def setSite(site=None): pass +try: + import itools.zope + def get_context(): + return current_app + itools.zope.get_context = get_context +except ImportError: + pass import transaction from Testing import ZopeTestCase