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

Method test_eval

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

Source from the content-addressed store, hash-verified

404 self.assertEqual(a.b, "~/1/2/3")
405
406 def test_eval(self):
407 cl = self.klass(log=log) # type:ignore
408 argv = ["-c", "a=5"]
409 config = cl.load_config(argv, aliases=dict(c="A.c"))
410 self.assertEqual(config.A.c, "a=5")
411
412 def test_seq_traits(self):
413 cl = self.klass(log=log, classes=(CBase, CSub)) # type:ignore

Callers

nothing calls this directly

Calls 1

load_configMethod · 0.45

Tested by

no test coverage detected