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

Method test_eval

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

Source from the content-addressed store, hash-verified

271 klass = KeyValueConfigLoader
272
273 def test_eval(self):
274 cl = self.klass(log=log)
275 config = cl.load_config(
276 '--C.str_trait=all --C.int_trait=5 --C.list_trait=["hello",5]'.split()
277 )
278 c = C(config=config)
279 assert c.str_trait == "all"
280 assert c.int_trait == 5
281 assert c.list_trait == ["hello", 5]
282
283 def test_basic(self):
284 cl = self.klass(log=log)

Callers

nothing calls this directly

Calls 2

CClass · 0.70
load_configMethod · 0.45

Tested by

no test coverage detected