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
No known key found for this signature in database
GPG Key ID: 5B4EF742F8CD859C
1 changed files with
3 additions and
4 deletions
-
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' |
|
|
|