Browse Source

fixup! fixup! [FIX] Use _compute_session_token to invalidate user sessions on auth_session_timeout

pull/1495/head
George Daramouskas 6 years ago
parent
commit
85141533a6
No known key found for this signature in database GPG Key ID: 5B4EF742F8CD859C
  1. 3
      auth_session_timeout/tests/test_res_users.py

3
auth_session_timeout/tests/test_res_users.py

@ -120,8 +120,7 @@ class TestResUsers(TransactionCase):
"""
with self._mock_assets(['http', 'getmtime']) as assets:
assets['getmtime'].return_value = 0
attrs = {'__nonzero__': lambda self: True}
assets['http'].request.configure_mock(**attrs)
assets['http'].request.env.user = self.TestUser
assets['http'].request.session.uid = self.TestUser.id
assets['http'].request.session.dbname = self.env.cr.dbname
assets['http'].request.session.sid = '123'

Loading…
Cancel
Save