# HG changeset patch # User Sylvain Thénault # Date 1253018980 -7200 # Node ID 948e0cb59b1aa89d8607b6113f42315627796980 # Parent 7b05b2709439ac3e580c5d604ae13027cffc58e6 test update diff -r 7b05b2709439 -r 948e0cb59b1a web/test/unittest_viewselector.py --- a/web/test/unittest_viewselector.py Tue Sep 15 14:49:30 2009 +0200 +++ b/web/test/unittest_viewselector.py Tue Sep 15 14:49:40 2009 +0200 @@ -17,6 +17,8 @@ treeview, idownloadable, wdoc, debug, cwproperties, workflow, xmlrss, csvexport) +from cubes.folder import views as folderviews + USERACTIONS = [('myprefs', actions.UserPreferencesAction), ('myinfos', actions.UserInfoAction), ('logout', actions.LogoutAction)] @@ -76,7 +78,9 @@ ('propertiesform', cwproperties.CWPropertiesForm), ('registry', startup.RegistryView), ('schema', schema.SchemaView), - ('systempropertiesform', cwproperties.SystemCWPropertiesForm)]) + ('systempropertiesform', cwproperties.SystemCWPropertiesForm), + ('tree', folderviews.FolderTreeView), + ]) def test_possible_views_noresult(self): rset, req = self.env.get_rset_and_req('Any X WHERE X eid 999999') @@ -254,9 +258,9 @@ self.assertDictEqual(self.pactions(req, rset), {'useractions': USERACTIONS, 'siteactions': SITEACTIONS, - 'mainactions': [('edit', actions.ModifyAction), - ('workflow', workflow.ViewWorkflowAction),], + 'mainactions': [('edit', actions.ModifyAction)], 'moreactions': [('managepermission', actions.ManagePermissionsAction), + ('addrelated', actions.AddRelatedActions), ('delete', actions.DeleteAction), ('copy', actions.CopyAction), ], @@ -445,6 +449,7 @@ 'siteactions': SITEACTIONS, 'mainactions': [('edit', actions.ModifyAction)], 'moreactions': [('managepermission', actions.ManagePermissionsAction), + ('addrelated', actions.AddRelatedActions), ('delete', actions.DeleteAction), ('copy', actions.CopyAction), ('testaction', CWETypeRQLAction), @@ -456,6 +461,7 @@ 'siteactions': SITEACTIONS, 'mainactions': [('edit', actions.ModifyAction)], 'moreactions': [('managepermission', actions.ManagePermissionsAction), + ('addrelated', actions.AddRelatedActions), ('delete', actions.DeleteAction), ('copy', actions.CopyAction), ],