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

Method test_parameter_constant

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

Source from the content-addressed store, hash-verified

311 self.assertEqual(['--flag'], args_string)
312
313 def test_parameter_constant(self):
314 parameter = create_script_param_config('p1', constant=True, default='const')
315 config = create_config_model('config_x', parameters=[parameter])
316
317 args_string = self.build_command_args({'p1': 'value'}, config)
318
319 self.assertEqual(['const'], args_string)
320
321 def test_parameter_int(self):
322 parameter = create_script_param_config('p1', param='-p1', type='int')

Callers

nothing calls this directly

Calls 3

build_command_argsMethod · 0.95
create_config_modelFunction · 0.90

Tested by

no test coverage detected