def setUp(self):
     super(TestDefaultWorkFlowEngine, self).setUp()
     self.engine = tflow.DefaultWorkFlowEngine(
         config=mock.Mock(),
         context=self.context,
         applier_manager=mock.MagicMock())
     self.engine.config.max_workers = 2
Beispiel #2
0
 def setUp(self):
     super(TestTaskFlowActionContainer, self).setUp()
     self.engine = tflow.DefaultWorkFlowEngine(
         config=mock.Mock(),
         context=self.context,
         applier_manager=mock.MagicMock())
     obj_utils.create_test_goal(self.context)
     self.strategy = obj_utils.create_test_strategy(self.context)
     self.audit = obj_utils.create_test_audit(self.context,
                                              strategy_id=self.strategy.id)