Skip to content

Commit

Permalink
[MIG] auth_session_timeout: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Loregs2 committed May 13, 2024
1 parent 2bb2d4b commit 495241a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion auth_session_timeout/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"website": "https://github.com/OCA/server-auth",
"category": "Tools",
"development_status": "Production/Stable",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"data": ["data/ir_config_parameter_data.xml"],
"installable": True,
Expand Down
2 changes: 1 addition & 1 deletion auth_session_timeout/models/ir_config_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _auth_timeout_get_parameter_ignored_urls(self):
return urls.split(",")

def write(self, vals):
res = super(IrConfigParameter, self).write(vals)
res = super().write(vals)
self._auth_timeout_get_parameter_delay.clear_cache(
self.filtered(lambda r: r.key == DELAY_KEY),
)
Expand Down
2 changes: 1 addition & 1 deletion auth_session_timeout/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class IrHttp(models.AbstractModel):

@classmethod
def _authenticate(cls, endpoint):
res = super(IrHttp, cls)._authenticate(endpoint=endpoint)
res = super()._authenticate(endpoint=endpoint)
if (
request
and request.session
Expand Down
6 changes: 3 additions & 3 deletions auth_session_timeout/tests/test_ir_config_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class TestIrConfigParameter(common.TransactionCase):
def setUp(self):
super(TestIrConfigParameter, self).setUp()
super().setUp()
self.db = self.env.cr.dbname
self.param_obj = self.env["ir.config_parameter"]
self.data_obj = self.env["ir.model.data"]
Expand All @@ -27,7 +27,7 @@ def test_check_session_param_urls(self):

class TestIrConfigParameterCaching(common.TransactionCase):
def setUp(self):
super(TestIrConfigParameterCaching, self).setUp()
super().setUp()
self.db = self.env.cr.dbname
self.param_obj = self.env["ir.config_parameter"]
self.get_param_called = False
Expand All @@ -41,7 +41,7 @@ def get_param(*args, **kwargs):
self.param_obj._patch_method("get_param", get_param)

def tearDown(self):
super(TestIrConfigParameterCaching, self).tearDown()
super().tearDown()
self.param_obj._revert_method("get_param")

def test_auth_timeout_get_parameter_delay_cache(self):
Expand Down
2 changes: 1 addition & 1 deletion auth_session_timeout/tests/test_res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EndTestException(Exception):

class TestResUsers(TransactionCase):
def setUp(self):
super(TestResUsers, self).setUp()
super().setUp()
self.ResUsers = self.env["res.users"]

@contextmanager
Expand Down

0 comments on commit 495241a

Please sign in to comment.