fix reledit related test breakage stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 21 Oct 2009 14:39:26 +0200
branchstable
changeset 3772 316d0b524db8
parent 3771 234b003f0fe0
child 3773 14fde27a70a2
child 3779 bb44b3a522fe
fix reledit related test breakage
web/test/unittest_form.py
web/test/unittest_views_basecontrollers.py
--- a/web/test/unittest_form.py	Wed Oct 21 14:31:15 2009 +0200
+++ b/web/test/unittest_form.py	Wed Oct 21 14:39:26 2009 +0200
@@ -103,7 +103,7 @@
 
     def test_reledit_composite_field(self):
         rset = self.execute('INSERT BlogEntry X: X title "cubicweb.org", X content "hop"')
-        form = self.vreg['views'].select('reledit', self.request(),
+        form = self.vreg['views'].select('doreledit', self.request(),
                                          rset=rset, row=0, rtype='content')
         data = form.render(row=0, rtype='content')
         self.failUnless('edits-content' in data)
--- a/web/test/unittest_views_basecontrollers.py	Wed Oct 21 14:31:15 2009 +0200
+++ b/web/test/unittest_views_basecontrollers.py	Wed Oct 21 14:39:26 2009 +0200
@@ -563,23 +563,6 @@
         self.assertEquals(self.execute('Any N WHERE T tags P, P is CWUser, T name N').rows,
                           [['javascript']])
 
-    def test_edit_field(self):
-        nbusers = len(self.execute('CWUser P'))
-        eid = self.john.eid
-        self.remote_call('edit_field', 'apply',
-                         ('eid', 'firstname:%s' % eid, '__maineid', '__type:%s'% eid, 'edits-firstname:%s' % eid ),
-                         (str(eid), u'Remi', str(eid), 'CWUser', self.john.firstname),
-                         'firstname',
-                         eid, 'default_value')
-        self.commit()
-        rset = self.execute('CWUser P')
-        # make sure we did not insert a new cwuser here
-        self.assertEquals(len(rset), nbusers)
-        john = self.execute('Any X WHERE X eid %(x)s', {'x': self.john.eid}, 'x').get_entity(0, 0)
-        self.assertEquals(john.eid, self.john.eid)
-        self.assertEquals(john.firstname, 'Remi')
-
-
     def test_pending_insertion(self):
         res, req = self.remote_call('add_pending_inserts', [['12', 'tags', '13']])
         deletes = req.get_pending_deletes()