Skip to content

Commit

Permalink
edi_oca: use queue_job__no_delay key in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Nov 15, 2024
1 parent 6f472cd commit bd9db2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion edi_oca/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion edi_oca/tests/test_backend_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion edi_oca/tests/test_backend_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def setUpClass(cls):
@classmethod
def _setup_context(cls):
# Re-enable jobs
return dict(super()._setup_context(), test_queue_job_no_delay=False)
return dict(super()._setup_context(), queue_job__no_delay=False)

def test_job(self):
with trap_jobs() as trap:
Expand Down
2 changes: 1 addition & 1 deletion edi_oca/tests/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bd9db2a

Please sign in to comment.