diff --git a/test/unittest_comment.py b/test/unittest_comment.py index 1b0122534dad6216d8d1622d9c9a5dd1cd0482b8_dGVzdC91bml0dGVzdF9jb21tZW50LnB5..07264db771401dcabac0bf3703059744dd925a30_dGVzdC91bml0dGVzdF9jb21tZW50LnB5 100644 --- a/test/unittest_comment.py +++ b/test/unittest_comment.py @@ -28,7 +28,7 @@ def test_possible_actions(self): req = self.request() req.create_entity('Comment', content=u"bouh!", comments=self.b) - self.create_user('user') # will commit + self.create_user(req, 'user') # will commit rset = req.execute('Any X WHERE X is BlogEntry') actions = self.pactions(req, rset) self.assertTrue(('reply_comment', views.AddCommentAction) in actions) @@ -68,7 +68,7 @@ def test_add_related_actions(self): req = self.request() req.create_entity('Comment', content=u"bouh!", comments=self.b) - self.create_user('user') # will comit + self.create_user(req, 'user') # will comit rset = req.execute('Any X WHERE X is Comment') self.assertEqual(self.pactions_by_cats(req, rset), []) cnx = self.login('user') diff --git a/test/unittest_hooks.py b/test/unittest_hooks.py index 1b0122534dad6216d8d1622d9c9a5dd1cd0482b8_dGVzdC91bml0dGVzdF9ob29rcy5weQ==..07264db771401dcabac0bf3703059744dd925a30_dGVzdC91bml0dGVzdF9ob29rcy5weQ== 100644 --- a/test/unittest_hooks.py +++ b/test/unittest_hooks.py @@ -9,7 +9,7 @@ def test_notif_after_add_relation_comments(self): req = self.session - req.set_pool() + req.set_cnxset() c = req.execute('Comment X').get_entity(0, 0) v = self.vreg['views'].select('notif_after_add_relation_comments', req, rset=c.cw_rset, row=0)