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

Method test_python

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

Source from the content-addressed store, hash-verified

77 self.assertEqual(config.D.C.value, "hi there")
78
79 def test_python(self):
80 fd, fname = mkstemp(".py", prefix="μnïcø∂e")
81 f = os.fdopen(fd, "w")
82 f.write(pyfile)
83 f.close()
84 # Unlink the file
85 cl = PyFileConfigLoader(fname, log=log)
86 config = cl.load_config()
87 self._check_conf(config)
88
89 def test_json(self):
90 fd, fname = mkstemp(".json", prefix="μnïcø∂e")

Callers

nothing calls this directly

Calls 3

load_configMethod · 0.95
_check_confMethod · 0.95
PyFileConfigLoaderClass · 0.90

Tested by

no test coverage detected