Commit bf4c2052 authored by Łukasz Nowak's avatar Łukasz Nowak

- custom another workflow chain is being removed from BT5, not custom workflow


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45122 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c01da54e
...@@ -5966,22 +5966,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -5966,22 +5966,6 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertSameSet(cbt['Geek Object'], self.assertSameSet(cbt['Geek Object'],
('geek_workflow', 'custom_geek_workflow')) ('geek_workflow', 'custom_geek_workflow'))
def stepCheckAnotherWorkflowChain(self, sequence=None,
sequence_list=None, **kw):
"""
Check original workflow chain
"""
present = 0
pw = self.getWorkflowTool()
cbt = pw._chains_by_type
if cbt is not None:
for id, wf_ids in cbt.items():
if id == "Geek Object":
present = 1
self.assertEqual(present, 1)
self.assertSameSet(cbt['Geek Object'],
('geek_workflow', 'custom_another_workflow'))
def stepCheckOriginalWorkflowChain(self, sequence=None, def stepCheckOriginalWorkflowChain(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
""" """
...@@ -6192,8 +6176,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6192,8 +6176,8 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
"""Check that chains are correctly removed during update """Check that chains are correctly removed during update
When previous business template defined that object is associated When previous business template defined that object is associated
with workflows A, B, C and that new one says that only A and C with workflows A, B, C and that new one says that only A and B
associations are required check that after installing only A and C associations are required check that after installing only A and B
will be on workflow chains.""" will be on workflow chains."""
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
...@@ -6273,7 +6257,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6273,7 +6257,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UseImportBusinessTemplate \ UseImportBusinessTemplate \
InstallBusinessTemplate \ InstallBusinessTemplate \
Tic \ Tic \
CheckAnotherWorkflowChain \ CheckWorkflowChain \
CheckWorkflowChainExists \ CheckWorkflowChainExists \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
......
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