[test] use unicode for rql queries (2/7)
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 08 Sep 2015 16:24:42 +0200
changeset 10655 13081d3f7c99
parent 10654 d6d9913753d2
child 10656 0b1d03f07b87
[test] use unicode for rql queries (2/7) Related to #6694446
web/test/test_views.py
--- a/web/test/test_views.py	Wed Sep 09 09:37:14 2015 +0200
+++ b/web/test/test_views.py	Tue Sep 08 16:24:42 2015 +0200
@@ -50,7 +50,7 @@
         composite entity
         """
         with self.admin_access.web_request() as req:
-            rset = req.execute('CWUser X WHERE X login "admin"')
+            rset = req.execute(u'CWUser X WHERE X login "admin"')
             self.view('copy', rset, req=req)
 
     def test_sortable_js_added(self):
@@ -77,7 +77,7 @@
             group = cnx.create_entity('CWGroup', name=u'R&D')
             cnx.commit()
         with self.admin_access.web_request(relation='in_group_subject') as req:
-            rset = req.execute('Any X WHERE X is CWUser, X login "admin"')
+            rset = req.execute(u'Any X WHERE X is CWUser, X login "admin"')
             self.view('unrelateddivs', rset, req=req)