コード例 #1
0
 def test_execute_action_only_no_arguments_valid_data_with_conversion_inverted(
         self):
     self.assertFalse(
         Condition('HelloWorld', 'Top Condition',
                   is_negated=True).execute(LocalActionExecutionStrategy(),
                                            '3.4', {}))
コード例 #2
0
 def test_execute_action_only_no_arguments_invalid_data(self):
     self.assertFalse(
         Condition('HelloWorld',
                   'Top Condition').execute(LocalActionExecutionStrategy(),
                                            'invalid', {}))
コード例 #3
0
ファイル: test_branch.py プロジェクト: jkohrman/WALKOFF
 def test_get_branch_no_branches(self):
     workflow = Workflow('test', 1)
     wf_ctx = WorkflowExecutionContext(workflow, {}, None, None)
     self.assertIsNone(
         Executor.get_branch(wf_ctx, LocalActionExecutionStrategy()))