diff --git a/edi_oca/tests/common.py b/edi_oca/tests/common.py index a72126775d..d2b418d865 100644 --- a/edi_oca/tests/common.py +++ b/edi_oca/tests/common.py @@ -15,14 +15,15 @@ class EDIBackendTestMixin(object): @classmethod - def _setup_context(cls): + def _setup_context(cls, **kw): return dict( - cls.env.context, tracking_disable=True, test_queue_job_no_delay=True + cls.env.context, tracking_disable=True, test_queue_job_no_delay=True, **kw ) @classmethod - def _setup_env(cls): - cls.env = cls.env(context=cls._setup_context()) + def _setup_env(cls, ctx=None): + ctx = ctx or {} + cls.env = cls.env(context=cls._setup_context(**ctx)) @classmethod def _setup_records(cls):