Skip to content
Snippets Groups Projects
Commit fc6c3ab70a59 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

use rset_and_req method

parent 2f2068a668a3
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
def test_possible_views(self):
# comment primary view priority
rset, req = self.env.get_rset_and_req('Comment X')
rset, req = self.rset_and_req('Comment X')
self.assertIsInstance(self.vreg.select_view('primary', req, rset),
views.CommentPrimaryView)
self.assertIsInstance(self.vreg.select_view('tree', req, rset),
......@@ -64,7 +64,7 @@
cnx.rollback()
def test_nonregr_possible_actions(self):
rset, req = self.env.get_rset_and_req('Any B WHERE B is BlogEntry')
rset, req = self.rset_and_req('Any B WHERE B is BlogEntry')
beid = rset[0][0]
self.execute('INSERT Comment X: X content "Yooo !", X comments B WHERE B eid %s' % beid)
# now two comments are commenting this blog
......@@ -68,7 +68,7 @@
beid = rset[0][0]
self.execute('INSERT Comment X: X content "Yooo !", X comments B WHERE B eid %s' % beid)
# now two comments are commenting this blog
rset, req = self.env.get_rset_and_req('Any C WHERE C comments X, X eid %s' % beid)
rset, req = self.rset_and_req('Any C WHERE C comments X, X eid %s' % beid)
self.assertEquals(len(rset), 2)
self.failUnless(self.vreg.select_action('reply_comment', req, rset, row=0))
self.failUnless(self.vreg.select_action('reply_comment', req, rset, row=1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment