Skip to content

Commit

Permalink
[REF] remove explicit super() arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Dec 27, 2024
1 parent a71bef6 commit 23fc991
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion queue_job/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __init__(

def setUp(self):
"""Log an extra statement which test is started."""
super(OdooDocTestCase, self).setUp()
super().setUp()
logging.getLogger(__name__).info("Running tests for %s", self._dt_test.name)


Expand Down
2 changes: 1 addition & 1 deletion queue_job_subscribe/tests/test_job_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class TestJobSubscribe(common.TransactionCase):
def setUp(self):
super(TestJobSubscribe, self).setUp()
super().setUp()
grp_queue_job_manager = self.ref("queue_job.group_queue_job_manager")
self.other_partner_a = self.env["res.partner"].create(
{"name": "My Company a", "is_company": True, "email": "[email protected]"}
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job/models/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def job_with_retry_pattern__no_zero(self):
return

def mapped(self, func):
return super(ModelTestQueueJob, self).mapped(func)
return super().mapped(func)

def job_alter_mutable(self, mutable_arg, mutable_kwarg=None):
mutable_arg.append(2)
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job/tests/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ class TestJobStorageMultiCompany(common.TransactionCase):
"""Test storage of jobs"""

def setUp(self):
super(TestJobStorageMultiCompany, self).setUp()
super().setUp()
self.queue_job = self.env["queue.job"]
grp_queue_job_manager = self.ref("queue_job.group_queue_job_manager")
User = self.env["res.users"]
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job/tests/test_job_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TestJobFunction(common.TransactionCase):
def setUp(self):
super(TestJobFunction, self).setUp()
super().setUp()
self.test_function_model = self.env.ref(
"queue_job.job_function_queue_job__test_job"
)
Expand Down

0 comments on commit 23fc991

Please sign in to comment.