-
- Downloads
[FIX] core: ensure we create a new session for each tour
The browser itself would get mostly cleaned up between tours, but the session object would not get cleaned, and apparently in some cases that could lead to an incoherent session: a tour would add data to the session which the next tour (logging in as a different user) would not (fully) override, leading to a session inconsistency and a Session Expired exception during the tour. Fix by not storing the session on the test object, the session is created during authentication then set on the opener & browser.
Showing
- addons/account/tests/test_portal_attachment.py 2 additions, 0 deletionsaddons/account/tests/test_portal_attachment.py
- addons/test_xlsx_export/tests/test_export.py 2 additions, 2 deletionsaddons/test_xlsx_export/tests/test_export.py
- addons/website/tests/test_page.py 1 addition, 0 deletionsaddons/website/tests/test_page.py
- odoo/tests/common.py 31 additions, 24 deletionsodoo/tests/common.py
Loading
Please register or sign in to comment