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

Method test_set_value

src/tests/script_config_test.py:126–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

124class ConfigModelValuesTest(unittest.TestCase):
125
126 def test_set_value(self):
127 param1 = create_script_param_config('param1')
128 config_model = _create_config_model('conf_x', parameters=[param1])
129 config_model.set_param_value('param1', 'abc')
130
131 expected_values = wrap_values(config_model.parameters, {'param1': 'abc'})
132 self.assertEqual(expected_values, config_model.parameter_values)
133
134 def test_set_value_for_unknown_parameter(self):
135 param1 = create_script_param_config('param1')

Callers

nothing calls this directly

Calls 4

wrap_valuesFunction · 0.90
_create_config_modelFunction · 0.85
set_param_valueMethod · 0.80

Tested by

no test coverage detected