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

Method test_dict_key_traits

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

Source from the content-addressed store, hash-verified

344 assert c.dict_trait == {"x": "5", "y": "10"}
345
346 def test_dict_key_traits(self):
347 cl = self.klass(log=log)
348 argv = ["--C.dict_of_ints", "1=2", "--C.dict_of_ints", "3=4"]
349 config = cl.load_config(argv)
350 c = C(config=config)
351 assert c.dict_of_ints == {1: 2, 3: 4}
352
353
354class CBase(Configurable):

Callers

nothing calls this directly

Calls 2

CClass · 0.70
load_configMethod · 0.45

Tested by

no test coverage detected