Squashed 'SpiffWorkflow/' changes from 5664815a2..4195453a4

4195453a4 Merge commit 'c3c56ceaae3dcfad5e7c24bdec8e5dee9c09607c'
0629dcb9a added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk

git-subtree-dir: SpiffWorkflow
git-subtree-split: 4195453a46638f23e87c3ffdb038717c2d8abd00
This commit is contained in:
jasquat 2023-01-05 17:35:20 -05:00
parent c3c56ceaae
commit 80cb923b14
1 changed files with 9 additions and 0 deletions

View File

@ -60,6 +60,15 @@ class ServiceTaskTest(BaseTestCase):
self.workflow.do_engine_steps()
self._assert_service_tasks()
def testRunSameServiceTaskActivityMultipleTimes(self):
self.workflow.do_engine_steps()
service_task_activity = [t for t in self.workflow.get_tasks() if
t.task_spec.name == 'Activity-1inxqgx'][0]
service_task_activity.task_spec._execute(service_task_activity)
service_task_activity.task_spec._execute(service_task_activity)
service_task_activity.task_spec._execute(service_task_activity)
def testRunThroughSaveRestore(self):
self.save_restore()
# Engine isn't preserved through save/restore, so we have to reset it.