devtools/testlib.py
changeset 9929 16163ee1cdf9
parent 9845 9c3ec404534f
child 9931 013dd868e6da
--- a/devtools/testlib.py	Tue Jul 08 11:33:32 2014 +0200
+++ b/devtools/testlib.py	Tue Jun 17 11:53:35 2014 +0200
@@ -297,6 +297,9 @@
     _cnxs = set() # establised connection
                   # stay on connection for leak detection purpose
 
+    # anonymous is logged by default in cubicweb test cases
+    anonymous_allowed = True
+
     def __init__(self, *args, **kwargs):
         self._admin_session = None
         self._admin_clt_cnx = None
@@ -532,6 +535,7 @@
             config.global_set_option('embed-allowed', re.compile('.*'))
         except Exception: # not in server only configuration
             pass
+        config.set_anonymous_allowed(cls.anonymous_allowed)
 
     @property
     def vreg(self):