Skip to content

Commit

Permalink
[IMP] sale_automatic_workflow: Remove deprecated queue job context fo…
Browse files Browse the repository at this point in the history
…r tests
  • Loading branch information
rousseldenis committed Aug 23, 2024
1 parent 76d07de commit fbe7e50
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sale_automatic_workflow/tests/test_automatic_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@

@tagged("post_install", "-at_install", "mail_composer")
class TestAutomaticWorkflow(TestCommon, TestAutomaticWorkflowMixin):
def setUp(self):
super().setUp()
self.env = self.env(
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
self.env.context,
cls.env.context,
tracking_disable=True,
# Compatibility with sale_automatic_workflow_job: even if
# the module is installed, ensure we don't delay a job.
# Thus, we test the usual flow.
_job_force_sync=True,
queue_job__no_delay=True,
)
)

Expand Down

0 comments on commit fbe7e50

Please sign in to comment.