# HG changeset patch # User Julien Cristau # Date 1441722282 -7200 # Node ID 13081d3f7c99426fa8267e06883494d2671aa2bb # Parent d6d9913753d27a3324c7cc32882bc07be0d1ed58 [test] use unicode for rql queries (2/7) Related to #6694446 diff -r d6d9913753d2 -r 13081d3f7c99 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)