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 Oct 11, 2024
1 parent 8aef9b1 commit 5ca2f6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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_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 5ca2f6d

Please sign in to comment.