[test] fix server/querier/build_descr1 test.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 26 Nov 2012 19:47:12 +0100
changeset 8623 9f7481a05383
parent 8622 db988713459d
child 8624 7e415f457155
[test] fix server/querier/build_descr1 test. There is no self.transaction of TestCase. I assumed the test writer meant a session. This seems to make the test pass.
server/test/unittest_querier.py
--- a/server/test/unittest_querier.py	Tue Nov 27 12:36:33 2012 +0100
+++ b/server/test/unittest_querier.py	Mon Nov 26 19:47:12 2012 +0100
@@ -268,7 +268,7 @@
 
     def test_build_descr1(self):
         rset = self.execute('(Any U,L WHERE U login L) UNION (Any G,N WHERE G name N, G is CWGroup)')
-        rset.req = self.transaction
+        rset.req = self.session
         orig_length = len(rset)
         rset.rows[0][0] = 9999999
         description = manual_build_descr(rset.req, rset.syntax_tree(), None, rset.rows)