MCPcopy Index your code
hub / github.com/bugy/script-server / test_start_without_values

Method test_start_without_values

src/tests/executor_test.py:24–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22
23class 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(

Callers

nothing calls this directly

Calls 3

create_executorMethod · 0.95
create_config_modelFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected