[web test] ensure we're using proper instance home stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Feb 2011 16:46:18 +0100
branchstable
changeset 7007 3804794b1ccd
parent 7005 f45f42256905
child 7008 5d0be45ee69d
[web test] ensure we're using proper instance home
web/test/test_views.py
web/test/test_windmill.py
--- a/web/test/test_views.py	Thu Feb 17 16:08:20 2011 +0100
+++ b/web/test/test_views.py	Thu Feb 17 16:46:18 2011 +0100
@@ -20,11 +20,12 @@
 from cubicweb.devtools.testlib import CubicWebTC, AutoPopulateTest, AutomaticWebTest
 from cubicweb.view import AnyRsetView
 
-AutomaticWebTest.application_rql = [
-    'Any L,F WHERE E is CWUser, E login L, E firstname F',
-    'Any L,F,E WHERE E is CWUser, E login L, E firstname F',
-    'Any COUNT(X) WHERE X is CWUser',
-    ]
+class AutomaticWebTest(AutomaticWebTest):
+    application_rql = [
+        'Any L,F WHERE E is CWUser, E login L, E firstname F',
+        'Any L,F,E WHERE E is CWUser, E login L, E firstname F',
+        'Any COUNT(X) WHERE X is CWUser',
+        ]
 
 
 class SomeView(AnyRsetView):
--- a/web/test/test_windmill.py	Thu Feb 17 16:08:20 2011 +0100
+++ b/web/test/test_windmill.py	Thu Feb 17 16:46:18 2011 +0100
@@ -2,5 +2,7 @@
 from cubicweb.devtools.cwwindmill import (CubicWebWindmillUseCase,
                                           unittest_main)
 
+class CubicWebWindmillUseCase(CubicWebWindmillUseCase): pass
+
 if __name__ == '__main__':
     unittest_main()