Ejemplo n.º 1
0
    def _get_mock_runner_obj(self, pack=None, sandbox=None):
        runner = python_runner.get_runner()
        runner.execution = MOCK_EXECUTION
        runner.action = self._get_mock_action_obj()
        runner.runner_parameters = {}

        if pack:
            runner.action.pack = pack

        if sandbox is not None:
            runner._sandbox = sandbox

        return runner
Ejemplo n.º 2
0
 def test_runner_creation(self):
     runner = python_runner.get_runner()
     self.assertIsNotNone(runner, "Creation failed. No instance.")
     self.assertEqual(type(runner), python_runner.PythonRunner,
                      "Creation failed. No instance.")
Ejemplo n.º 3
0
 def test_runner_creation(self):
     runner = python_runner.get_runner()
     self.assertTrue(runner is not None, 'Creation failed. No instance.')
     self.assertEqual(type(runner), python_runner.PythonRunner, 'Creation failed. No instance.')
Ejemplo n.º 4
0
 def test_runner_creation(self):
     runner = python_runner.get_runner()
     self.assertTrue(runner is not None, 'Creation failed. No instance.')
     self.assertEqual(type(runner), python_runner.PythonRunner, 'Creation failed. No instance.')