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

Method test_list_append

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

Source from the content-addressed store, hash-verified

322 self.assertEqual(config.a, "épsîlön")
323
324 def test_list_append(self):
325 cl = self.klass(log=log)
326 argv = ["--C.list_trait", "x", "--C.list_trait", "y"]
327 config = cl.load_config(argv)
328 assert config.C.list_trait == ["x", "y"]
329 c = C(config=config)
330 assert c.list_trait == ["x", "y"]
331
332 def test_list_single_item(self):
333 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