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

Method test_full_config

src/tests/external_model_test.py:153–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151
152class TestServerConf(unittest.TestCase):
153 def test_full_config(self):
154 config = ServerConfig()
155 config.title = 'test title'
156 config.enable_script_titles = False
157
158 external_config = server_conf_to_external(config, '1.14.0')
159 self.assertEqual('test title', external_config.get('title'))
160 self.assertIs(False, external_config.get('enableScriptTitles'))
161 self.assertIs('1.14.0', external_config.get('version'))
162
163 def test_config_with_none_values(self):
164 config = ServerConfig()

Callers

nothing calls this directly

Calls 3

ServerConfigClass · 0.90
server_conf_to_externalFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected