Commit 01687bc0 authored by wenjie.zheng's avatar wenjie.zheng

ERP5TypeTestCase.py: reactivate dynamicWorkflowConversion, log the...

ERP5TypeTestCase.py: reactivate dynamicWorkflowConversion, log the type-workflow relation dictionary on log.
parent 7935d09f
......@@ -962,8 +962,9 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if 'edit_workflow' not in ptype.getTypeWorkflowList():
ptype.addTypeWorkflowList('edit_workflow')
# Reset the original workflows assignement order.
for type_value in type_value_list:
for type_value in sorted(type_value_list):
type_value.workflow_list = tuple(reversed(type_value.workflow_list))
LOG(" | Portal Type: '%s': '%s'"%(type_value.getId(), type_value.workflow_list), 0, "")
self.commit()
def setUpERP5Site(self,
......@@ -1069,10 +1070,10 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if hot_reindexing:
setattr(app,'isIndexable', 1)
portal.portal_catalog.manage_hotReindexAll()
#self.dynamicWorkflowConversion()
self.dynamicWorkflowConversion()
portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
#self.getPortal().erp5_sql_connection.manage_test("update message_queue set processing_node=0, priority=1 where processing_node=-1")
#self.getPortal().erp5_sql_connection.manage_test("update message set processing_node=0, priority=2 where processing_node=-1")
self.getPortal().erp5_sql_connection.manage_test("update message_queue set processing_node=0, priority=1 where processing_node=-1")
self.getPortal().erp5_sql_connection.manage_test("update message set processing_node=0, priority=2 where processing_node=-1")
self.tic(not quiet)
# Log out
if not quiet:
......
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