--- 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()