cubicweb/server/test/unittest_security.py
changeset 11699 b48020a80dc3
parent 11348 70337ad23145
child 12027 c62c80f20a82
--- a/cubicweb/server/test/unittest_security.py	Wed Oct 05 10:17:39 2016 +0200
+++ b/cubicweb/server/test/unittest_security.py	Mon Jun 06 15:26:49 2016 +0200
@@ -113,6 +113,7 @@
 
     def test_not_relation_read_security(self):
         with self.new_access(u'iaminusersgrouponly').repo_cnx() as cnx:
+            cnx.user.groups  # fill the cache before screwing syntax_tree_search
             self.hijack_source_execute()
             cnx.execute('Any U WHERE NOT A todo_by U, A is Affaire')
             self.assertEqual(self.query[0][1].as_string(),