devtools/cwwindmill.py
changeset 7059 1d65b235549f
parent 6438 abae10f81a85
child 7061 bb2080547722
--- a/devtools/cwwindmill.py	Mon Mar 07 23:16:22 2011 +0100
+++ b/devtools/cwwindmill.py	Fri Feb 18 15:26:00 2011 +0100
@@ -77,10 +77,10 @@
 
         test_dir = __file__
 
-    Instead of toggle `edit_test` value, try `pytest -i`
+    Instead of toggle `edit_test` value, try `python <test script> -f`
     """
     browser = 'firefox'
-    edit_test = "-i" in sys.argv # detection for pytest invocation
+    edit_test = "-f" in sys.argv or "-i" in sys.argv # XXX pytest
     # Windmill use case are written with no anonymous user
     anonymous_logged = False
 
@@ -99,7 +99,7 @@
 
     def setUp(self):
         # Start CubicWeb session before running the server to populate self.vreg
-        CubicWebServerTC.setUp(self)
+        super(CubicWebWindmillUseCase, self).setUp()
         # XXX reduce log output (should be done in a cleaner way)
         # windmill fu** up our logging configuration
         for logkey in ('windmill', 'logilab', 'cubicweb'):
@@ -118,7 +118,7 @@
 
     def tearDown(self):
         teardown(self.windmill_shell_objects)
-        CubicWebServerTC.tearDown(self)
+        super(CubicWebWindmillUseCase, self).tearDown()
 
     def testWindmill(self):
         if self.edit_test: