fix test
authorsylvain.thenault@logilab.fr
Tue, 27 Jan 2009 13:05:23 +0100
changeset 473 c0bf9e1e8b36
parent 472 958805c342b6
child 474 c9b0c3c06be0
fix test
web/test/test_views.py
web/test/unittest_viewselector.py
--- a/web/test/test_views.py	Mon Jan 26 19:38:37 2009 +0100
+++ b/web/test/test_views.py	Tue Jan 27 13:05:23 2009 +0100
@@ -37,7 +37,7 @@
     def test_manual_tests(self):
         rset = self.execute('Any P,F,S WHERE P is EUser, P firstname F, P surname S')
         self.view('table', rset, template=None, displayfilter=True, displaycols=[0,2])
-        rset = self.execute('Any P,F,S WHERE P is EUser, P firstname F, P surname S LIMIT 1')
+        rset = self.execute('Any P,F,S LIMIT 1 WHERE P is EUser, P firstname F, P surname S')
         rset.req.form['rtype'] = 'firstname'
         self.view('editrelation', rset, template=None, htmlcheck=False)
         rset.req.form['rtype'] = 'use_email'
@@ -49,7 +49,7 @@
         # sortable.js should not be included by default
         self.failIf('jquery.tablesorter.js' in self.view('oneline', rset))
         # but should be included by the tableview
-        rset = self.execute('Any P,F,S WHERE P is EUser, P firstname F, P surname S LIMIT 1')
+        rset = self.execute('Any P,F,S LIMIT 1 WHERE P is EUser, P firstname F, P surname S')
         self.failUnless('jquery.tablesorter.js' in self.view('table', rset))
 
     def test_js_added_only_once(self):
--- a/web/test/unittest_viewselector.py	Mon Jan 26 19:38:37 2009 +0100
+++ b/web/test/unittest_viewselector.py	Tue Jan 27 13:05:23 2009 +0100
@@ -75,6 +75,7 @@
                               ('index', startup.IndexView),
                               ('info', management.ProcessInformationView),
                               ('manage', startup.ManageView),
+                              ('owl', startup.OWLView),
                               ('schema', startup.SchemaView),
                               ('systemepropertiesform', management.SystemEpropertiesForm)])
         # no entity but etype