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

Method test_list_args

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

Source from the content-addressed store, hash-verified

238 self.assertEqual(config.Global.bam, "wow")
239
240 def test_list_args(self):
241 cl = MyLoader1()
242 config = cl.load_config("--list1 1 wow --list2 1 2 3 --list1 B".split())
243 self.assertEqual(list(config.Global.keys()), ["bam"])
244 self.assertEqual(config.Global.bam, "wow")
245 self.assertEqual(config.list1, [1, "B"])
246 self.assertEqual(config.list2, [1, 2, 3])
247
248
249class C(Configurable):

Callers

nothing calls this directly

Calls 2

MyLoader1Class · 0.85
load_configMethod · 0.45

Tested by

no test coverage detected