[FIX] mail: bad test
authorRichard Mathot <rim@openerp.com>
Tue, 19 Aug 2014 10:32:44 +0000 (12:32 +0200)
committerRichard Mathot <rim@openerp.com>
Tue, 19 Aug 2014 10:50:44 +0000 (12:50 +0200)
addons/mail/tests/common.py

index 5a5c28f..7856c02 100644 (file)
@@ -89,7 +89,7 @@ class TestMail(common.TransactionCase):
         }, {'no_reset_password': True})
 
         # Test users to use through the various tests
-        self.res_users.write(cr, uid, uid, {'name': 'Administrator'})
+        self.res_users.write(cr, uid, [uid], {'name': 'Administrator'})
         self.user_raoul_id = self.res_users.create(cr, uid, {
             'name': 'Raoul Grosbedon',
             'signature': 'SignRaoul',