backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Feb 2011 16:46:38 +0100
changeset 7009 123947d4a875
parent 7006 d0f635d3a6bb (current diff)
parent 7008 5d0be45ee69d (diff)
child 7013 7e402e92caa6
backport stable
--- a/server/migractions.py	Thu Feb 17 16:09:06 2011 +0100
+++ b/server/migractions.py	Thu Feb 17 16:46:38 2011 +0100
@@ -545,7 +545,7 @@
                 self.rqlexec('DELETE CWUniqueTogetherConstraint C '
                              'WHERE C constraint_of E, '
                              '      E eid %%(x)s,'
-                             '      %s' % ', '.join( restrictions),
+                             '      %s' % ', '.join(restrictions),
                              substs)
             for ut in unique_together - repo_unique_together:
                 rql, substs = ss.uniquetogether2rql(eschema, ut)
--- a/web/test/test_views.py	Thu Feb 17 16:09:06 2011 +0100
+++ b/web/test/test_views.py	Thu Feb 17 16:46:38 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:09:06 2011 +0100
+++ b/web/test/test_windmill.py	Thu Feb 17 16:46:38 2011 +0100
@@ -2,5 +2,7 @@
 from cubicweb.devtools.cwwindmill import (CubicWebWindmillUseCase,
                                           unittest_main)
 
+class CubicWebWindmillUseCase(CubicWebWindmillUseCase): pass
+
 if __name__ == '__main__':
     unittest_main()