[tests] fix test after eproperties got renamed to cwproperties stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 22 May 2009 00:52:18 +0200
branchstable
changeset 1900 8dd4bb69c73d
parent 1899 361774742f3e
child 1901 8681962e171e
[tests] fix test after eproperties got renamed to cwproperties
doc/book/en/annexes/faq.rst
web/test/unittest_urlrewrite.py
web/test/unittest_viewselector.py
--- a/doc/book/en/annexes/faq.rst	Fri May 22 00:46:41 2009 +0200
+++ b/doc/book/en/annexes/faq.rst	Fri May 22 00:52:18 2009 +0200
@@ -289,7 +289,7 @@
 
   If your schema has an attribute of type Date or Datetime, you might
   want to format it. First, you should define your preferred format using
-  the site configuration panel ``http://appurl/view?vid=systemepropertiesform``
+  the site configuration panel ``http://appurl/view?vid=systempropertiesform``
   and then set ``ui.date`` and/or ``ui.datetime``.
   Then in the view code, use::
     
--- a/web/test/unittest_urlrewrite.py	Fri May 22 00:46:41 2009 +0200
+++ b/web/test/unittest_urlrewrite.py	Fri May 22 00:52:18 2009 +0200
@@ -23,8 +23,8 @@
             ('foo' , dict(rql='Foo F')),
             ('/index' , dict(vid='index2')),
             ('/schema', {'vid': 'schema'}),
-            ('/myprefs', dict(vid='epropertiesform')),
-            ('/siteconfig', dict(vid='systemepropertiesform')),
+            ('/myprefs', dict(vid='propertiesform')),
+            ('/siteconfig', dict(vid='systempropertiesform')),
             ('/manage', dict(vid='manage')),
             ('/notfound', {'vid': '404'}),
             ('/error', {'vid': 'error'}),
--- a/web/test/unittest_viewselector.py	Fri May 22 00:46:41 2009 +0200
+++ b/web/test/unittest_viewselector.py	Fri May 22 00:52:18 2009 +0200
@@ -66,13 +66,13 @@
         self.assertListEqual(self.pviews(req, None),
                              [('changelog', wdoc.ChangeLogView),
                               ('debug', debug.DebugView),
-                              ('epropertiesform', cwproperties.EPropertiesForm),
                               ('index', startup.IndexView),
                               ('info', management.ProcessInformationView),
                               ('manage', startup.ManageView),
                               ('owl', owl.OWLView),
+                              ('propertiesform', cwproperties.CWPropertiesForm),
                               ('schema', startup.SchemaView),
-                              ('systemepropertiesform', cwproperties.SystemEPropertiesForm)])
+                              ('systempropertiesform', cwproperties.SystemCWPropertiesForm)])
 
     def test_possible_views_noresult(self):
         rset, req = self.env.get_rset_and_req('Any X WHERE X eid 999999')