diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-26 16:27:07 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-26 16:27:07 +0200 |
| commit | 0c79e1b07968e982ab012c4834f38a62cbe2321d (patch) | |
| tree | 05698d97656d34c56916e4a4167e0eae84e7bf76 /addons/web/static/src/js/testing.js | |
| parent | 38bc6817d6c411124c2d7f1ed456f01cad2cfc33 (diff) | |
Fixed multiple side effects related to the session
bzr revid: nicolas.vanhoren@openerp.com-20130726142707-eyfq5hmubm38slk1
Diffstat (limited to 'addons/web/static/src/js/testing.js')
| -rw-r--r-- | addons/web/static/src/js/testing.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js index d3a9a538dd9..af434c4c0f4 100644 --- a/addons/web/static/src/js/testing.js +++ b/addons/web/static/src/js/testing.js @@ -247,9 +247,8 @@ openerp.testing = {}; openerp.init(module_deps); openerp_inited = true; } - if (instance.session) { - instance.session.uid = 42; - } + instance.session = new instance.web.Session(); + instance.session.uid = 42; if (_.isNumber(opts.asserts)) { expect(opts.asserts); } |
