--- 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()