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

Function _from_json

src/tests/server_conf_test.py:421–425  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

419
420
421def _from_json(content):
422 json_obj = json.dumps(content)
423 conf_path = os.path.join(test_utils.temp_folder, 'conf.json')
424 file_utils.write_file(conf_path, json_obj)
425 return server_conf.from_json(conf_path, test_utils.temp_folder)

Calls 1

from_jsonMethod · 0.80

Tested by

no test coverage detected