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

Method test_parameter_int

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

Source from the content-addressed store, hash-verified

319 self.assertEqual(['const'], args_string)
320
321 def test_parameter_int(self):
322 parameter = create_script_param_config('p1', param='-p1', type='int')
323 config = create_config_model('config_x', parameters=[parameter])
324
325 args_string = self.build_command_args({'p1': 5}, config)
326
327 self.assertEqual(['-p1', 5], args_string)
328
329 def test_parameter_multiselect_when_empty_string(self):
330 parameter = create_script_param_config('p1', param='-p1', type=PARAM_TYPE_MULTISELECT)

Callers

nothing calls this directly

Calls 3

build_command_argsMethod · 0.95
create_config_modelFunction · 0.90

Tested by

no test coverage detected