Commit a45feb66 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.tests.CodingStyleTestCase: Trigger workflow migration.

This should detect any Business Template with non-migrated workflows.
Exclude the Business Template which is precisely made to test workflow
migration.
parent 551632a1
......@@ -138,6 +138,10 @@ class CodingStyleTestCase(ERP5TypeTestCase):
template_tool = self.portal.portal_templates
for bt_title in self.getTestedBusinessTemplateList():
bt = template_tool.getInstalledBusinessTemplate(bt_title, strict=True)
# run migrations on the business template, except for the BT used to
# test workflow migration.
if bt_title != 'erp5_workflow_test':
bt.BusinessTemplate_convertAllDCWorkflowToERP5Workflow()
# make sure we can rebuild
bt.build()
......
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