[tests] fix inline-creation/edition unit tests stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 22 Sep 2009 09:44:35 +0200
branchstable
changeset 3361 be0605689fed
parent 3360 b02df886eb3e
child 3362 2a2dcfb379a0
[tests] fix inline-creation/edition unit tests
web/test/unittest_views_editforms.py
--- a/web/test/unittest_views_editforms.py	Tue Sep 22 09:17:15 2009 +0200
+++ b/web/test/unittest_views_editforms.py	Tue Sep 22 09:44:35 2009 +0200
@@ -152,11 +152,13 @@
     def test_automatic_inline_edit_formview(self):
         geid = self.execute('CWGroup X LIMIT 1')[0][0]
         rset = self.execute('CWUser X LIMIT 1')
-        self.view('inline-edition', rset, row=0, rtype='in_group', peid=geid, template=None).source
+        self.view('inline-edition', rset, row=0, col=0, rtype='in_group',
+                  peid=geid, role='subject', template=None, i18nctx='').source
 
     def test_automatic_inline_creation_formview(self):
         geid = self.execute('CWGroup X LIMIT 1')[0][0]
-        self.view('inline-creation', None, etype='CWUser', rtype='in_group', peid=geid, template=None).source
+        self.view('inline-creation', None, etype='CWUser', rtype='in_group',
+                  peid=geid, template=None, i18nctx='', role='subject').source
 
 
 if __name__ == '__main__':