MCPcopy Create free account
hub / github.com/bugy/script-server / test_load_config

Method test_load_config

src/tests/script_config_test.py:1123–1131  ·  view source on GitHub ↗
(self, configured_config, expected_script, expected_format)

Source from the content-addressed store, hash-verified

1121 ({'script': 'echo 123', 'unknown_field': 'html'}, 'echo 123', 'terminal'),
1122 ])
1123 def test_load_config(self, configured_config, expected_script, expected_format):
1124 config = _create_config_model('some_name', config={
1125 'preload_script': configured_config
1126 })
1127
1128 self.assertEqual(
1129 config.preload_script,
1130 {'script': expected_script, 'output_format': expected_format}
1131 )
1132
1133 @parameterized.expand([
1134 ({'preload_script': None},),

Callers

nothing calls this directly

Calls 1

_create_config_modelFunction · 0.85

Tested by

no test coverage detected