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

Method test_start_with_one_value

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

Source from the content-addressed store, hash-verified

36 self.assertEqual(expected_values, process_wrapper.all_env_variables)
37
38 def test_start_with_one_value(self):
39 config = create_config_model(
40 'config_x',
41 parameters=[create_script_param_config('id')],
42 parameter_values={'id': 918273})
43
44 self.create_executor(config)
45 self.executor.start(123)
46
47 process_wrapper = self.executor.process_wrapper
48 self.assertEqual(['ls', 918273], process_wrapper.command)
49 assert_contains_sub_dict(self,
50 process_wrapper.all_env_variables,
51 {'PARAM_ID': '918273', 'EXECUTION_ID': '123'})
52
53 def test_start_with_multiple_values(self):
54 config = create_config_model(

Callers

nothing calls this directly

Calls 5

create_executorMethod · 0.95
create_config_modelFunction · 0.90
assert_contains_sub_dictFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected