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

Method test_dict

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

Source from the content-addressed store, hash-verified

337 assert c.list_trait == ["x"]
338
339 def test_dict(self):
340 cl = self.klass(log=log)
341 argv = ["--C.dict_trait", "x=5", "--C.dict_trait", "y=10"]
342 config = cl.load_config(argv)
343 c = C(config=config)
344 assert c.dict_trait == {"x": "5", "y": "10"}
345
346 def test_dict_key_traits(self):
347 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