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

Method test_default_config

src/tests/server_conf_test.py:362–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

360 test_utils.cleanup()
361
362 def test_default_config(self):
363 config = _from_json({})
364 env_vars = config.env_vars.build_env_vars()
365 self.assertEquals(env_vars, os.environ)
366
367 def test_config_when_safe_env_variables_used(self):
368 config = _from_json({'title': '$$VAR1', 'auth': {'type': 'ldap', 'url': '$$MY_SECRET'}})

Callers

nothing calls this directly

Calls 2

_from_jsonFunction · 0.85
build_env_varsMethod · 0.80

Tested by

no test coverage detected