MCPcopy Create free account
hub / github.com/ipython/traitlets / test_json

Method test_json

tests/config/test_loader.py:89–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 self._check_conf(config)
88
89 def test_json(self):
90 fd, fname = mkstemp(".json", prefix="μnïcø∂e")
91 f = os.fdopen(fd, "w")
92 f.write(json1file)
93 f.close()
94 # Unlink the file
95 cl = JSONFileConfigLoader(fname, log=log)
96 config = cl.load_config()
97 self._check_conf(config)
98
99 def test_context_manager(self):
100 fd, fname = mkstemp(".json", prefix="μnïcø∂e")

Callers

nothing calls this directly

Calls 3

load_configMethod · 0.95
_check_confMethod · 0.95

Tested by

no test coverage detected