Commit 7e2725fa authored by Romain Courteaud's avatar Romain Courteaud

tests: fixup query module jump change

See b678a025
parent b678a025
...@@ -242,8 +242,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -242,8 +242,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
{'id': 'view_historical_diff', {'id': 'view_historical_diff',
'title': 'View Historical Diff'}], 'title': 'View Historical Diff'}],
'object_jio_action': [{'id': 'post_query', 'title': 'Post a Query'}], 'object_jio_action': [{'id': 'post_query', 'title': 'Post a Query'}],
'object_jump': [{'id': 'jump_query', 'title': 'Queries'}, 'object_jio_jump': [{'id': 'jump_query', 'title': 'Queries'}],
{'id': 'jump_related_object', 'title': 'Related Objects'}], 'object_jump': [{'id': 'jump_related_object', 'title': 'Related Objects'}],
'object_search': [{'title': 'Search', 'id': 'search'}], 'object_search': [{'title': 'Search', 'id': 'search'}],
'object_sort': [{'title': 'Sort', 'id': 'sort_on'}], 'object_sort': [{'title': 'Sort', 'id': 'sort_on'}],
'object_ui': [{'title': 'Modify UI', 'id': 'list_ui'}], 'object_ui': [{'title': 'Modify UI', 'id': 'list_ui'}],
......
...@@ -62,7 +62,7 @@ class TestQueryModule(ERP5TypeTestCase): ...@@ -62,7 +62,7 @@ class TestQueryModule(ERP5TypeTestCase):
def test_jump_query_action_visible(self): def test_jump_query_action_visible(self):
action_list = self.portal.portal_actions.listFilteredActionsFor( action_list = self.portal.portal_actions.listFilteredActionsFor(
self.doc).get('object_jump') self.doc).get('object_jio_jump')
self.assertEqual(1, len([ai for ai in self.assertEqual(1, len([ai for ai in
action_list if ai['name'] == 'Queries'])) action_list if ai['name'] == 'Queries']))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment