(self)
| 22 | |
| 23 | class TestScriptExecutor(unittest.TestCase): |
| 24 | def test_start_without_values(self): |
| 25 | config = create_config_model('config_x', parameter_values={}) |
| 26 | self.create_executor(config) |
| 27 | self.executor.start(123) |
| 28 | |
| 29 | process_wrapper = self.executor.process_wrapper |
| 30 | self.assertEqual(None, process_wrapper.working_directory) |
| 31 | self.assertEqual(['ls'], process_wrapper.command) |
| 32 | |
| 33 | expected_values = {} |
| 34 | expected_values.update(os.environ) |
| 35 | expected_values['EXECUTION_ID'] = '123' |
| 36 | self.assertEqual(expected_values, process_wrapper.all_env_variables) |
| 37 | |
| 38 | def test_start_with_one_value(self): |
| 39 | config = create_config_model( |
nothing calls this directly
no test coverage detected