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

Method build_command_args

src/tests/executor_test.py:491–499  ·  view source on GitHub ↗
(self, param_values, config)

Source from the content-addressed store, hash-verified

489 self.assertEqual(args_string, ['-p1', 'val1', 'val2', '--p3', 'val5'])
490
491 def build_command_args(self, param_values, config):
492 if config.script_command is None:
493 config.script_command = 'ping'
494
495 config.set_all_param_values(param_values)
496
497 script_executor = ScriptExecutor(config, test_utils.env_variables)
498 args_string = executor.build_command_args(script_executor.get_script_parameter_values(), config)
499 return args_string
500
501
502class TestProcessOutput(unittest.TestCase):

Calls 3

ScriptExecutorClass · 0.90
set_all_param_valuesMethod · 0.80

Tested by

no test coverage detected