devtools/cwwindmill.py
branchstable
changeset 6438 abae10f81a85
parent 6424 f443a2b8a5c7
child 7052 9680cf108821
child 7059 1d65b235549f
--- a/devtools/cwwindmill.py	Mon Oct 11 11:05:19 2010 +0200
+++ b/devtools/cwwindmill.py	Mon Oct 11 12:26:50 2010 +0200
@@ -35,7 +35,7 @@
 from windmill.dep import functest
 from windmill.bin.admin_lib import configure_global_settings, setup, teardown
 
-from cubicweb.devtools.httptest import CubicWebServerTC
+from cubicweb.devtools.httptest import CubicWebServerTC, CubicWebServerConfig
 
 
 # Excerpt from :ref:`windmill.authoring.unit`
@@ -46,11 +46,6 @@
 unittestreporter = UnitTestReporter()
 functest.reports.register_reporter(unittestreporter)
 
-
-# Windmill use case are written with no anonymous user
-from cubicweb.devtools.httptest import CubicWebServerConfig
-CubicWebServerConfig.anonymous_logged = False
-
 class CubicWebWindmillUseCase(CubicWebServerTC):
     """basic class for Windmill use case tests
 
@@ -86,6 +81,8 @@
     """
     browser = 'firefox'
     edit_test = "-i" in sys.argv # detection for pytest invocation
+    # Windmill use case are written with no anonymous user
+    anonymous_logged = False
 
     def _test_dir(self):
         """access to class attribute if possible or make assumption