diff --git a/edi_oca/tests/common.py b/edi_oca/tests/common.py index f4e45f7a03..74047e19f0 100644 --- a/edi_oca/tests/common.py +++ b/edi_oca/tests/common.py @@ -17,7 +17,7 @@ class EDIBackendTestMixin(object): @classmethod def _setup_context(cls, **kw): return dict( - cls.env.context, tracking_disable=True, test_queue_job_no_delay=True, **kw + cls.env.context, tracking_disable=True, queue_job__no_delay=True, **kw ) @classmethod diff --git a/edi_oca/tests/test_backend_jobs.py b/edi_oca/tests/test_backend_jobs.py index ac23a298ad..1807155381 100644 --- a/edi_oca/tests/test_backend_jobs.py +++ b/edi_oca/tests/test_backend_jobs.py @@ -14,7 +14,7 @@ class EDIBackendTestJobsCase(EDIBackendCommonTestCase, JobMixin): @classmethod def _setup_context(cls): - return dict(super()._setup_context(), test_queue_job_no_delay=None) + return dict(super()._setup_context(), queue_job__no_delay=None) def test_output(self): job_counter = self.job_counter() diff --git a/edi_oca/tests/test_record.py b/edi_oca/tests/test_record.py index f8f00f4506..71eb77907b 100644 --- a/edi_oca/tests/test_record.py +++ b/edi_oca/tests/test_record.py @@ -142,7 +142,7 @@ def test_with_delay_override(self): ) self.exchange_type_in.job_channel_id = channel # re-enable job delayed feature - delayed = record.with_context(test_queue_job_no_delay=False).with_delay() + delayed = record.with_context(queue_job__no_delay=False).with_delay() # Silent useless warning # `Delayable Delayable(edi.exchange.record*) was prepared but never delayed` delayed.delayable._generated_job = object()