[web/test] fix test (doreledit must have a formid and this is now checked)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 02 Jul 2010 18:46:26 +0200
changeset 5873 0db035933b01
parent 5872 137be4487ade
child 5874 6afc88f439e8
[web/test] fix test (doreledit must have a formid and this is now checked)
web/test/unittest_form.py
--- a/web/test/unittest_form.py	Fri Jul 02 18:03:18 2010 +0200
+++ b/web/test/unittest_form.py	Fri Jul 02 18:46:26 2010 +0200
@@ -100,7 +100,7 @@
         rset = self.execute('INSERT BlogEntry X: X title "cubicweb.org", X content "hop"')
         form = self.vreg['views'].select('doreledit', self.request(),
                                          rset=rset, row=0, rtype='content')
-        data = form.render(row=0, rtype='content')
+        data = form.render(row=0, rtype='content', formid='base')
         self.failUnless('content_format' in data)
 
     # form view tests #########################################################