[web/test] fix cubicweb 3.19 deprecation warning
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 13 Feb 2015 15:10:43 +0100
changeset 10254 e42c2226c878
parent 10253 8eb9a3e9531c
child 10255 55413788be10
[web/test] fix cubicweb 3.19 deprecation warning
web/test/unittest_views_basecontrollers.py
--- a/web/test/unittest_views_basecontrollers.py	Fri Feb 13 15:09:36 2015 +0100
+++ b/web/test/unittest_views_basecontrollers.py	Fri Feb 13 15:10:43 2015 +0100
@@ -548,7 +548,7 @@
             self.assertIn('_cwmsgid', params)
             eid = req.create_entity('EmailAddress', address=u'hop@logilab.fr').eid
             req.execute('SET X use_email E WHERE E eid %(e)s, X eid %(x)s',
-                        {'x': self.session.user.eid, 'e': eid})
+                        {'x': req.user.eid, 'e': eid})
             req.cnx.commit()
             req.form = {'eid': unicode(eid), '__type:%s'%eid: 'EmailAddress',
                         '__action_delete': ''}