[MERGE] from trunk
[odoo/odoo.git] / addons / web / static / src / js / testing.js
index bf39f54..5aeeeb4 100644 (file)
@@ -2,7 +2,8 @@
 openerp.testing = {};
 (function (testing) {
     var dependencies = {
-        corelib: [],
+        pyeval: [],
+        corelib: ['pyeval'],
         coresetup: ['corelib'],
         data: ['corelib', 'coresetup'],
         dates: [],
@@ -270,6 +271,9 @@ openerp.testing = {};
                         openerp.web[module](instance);
                     });
             }
+            if (instance.session) {
+                instance.session.uid = 42;
+            }
             if (_.isNumber(opts.asserts)) {
                 expect(opts.asserts);
             }