diff --git a/queue_job/tests/test_run_rob_controller.py b/queue_job/tests/test_run_rob_controller.py index 0faa61c39..eb1b5cace 100644 --- a/queue_job/tests/test_run_rob_controller.py +++ b/queue_job/tests/test_run_rob_controller.py @@ -10,13 +10,13 @@ class TestRunJobController(TransactionCase): - def setUp(cls): + def setUp(self): super().setUp() def _clean_queue_job(): - cls.env["queue.job"].search([]).unlink() + self.env["queue.job"].search([]).unlink() - cls.addCleanup(_clean_queue_job) + self.addCleanup(_clean_queue_job) def test_get_failure_values(self): method = self.env["res.users"].mapped