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

Method test_argv

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

Source from the content-addressed store, hash-verified

230 self.assertEqual(config.Global.x, "frobble")
231
232 def test_argv(self):
233 cl = MyLoader1(argv="-f hi -b 10 -n wow".split())
234 config = cl.load_config()
235 self.assertEqual(config.Global.foo, "hi")
236 self.assertEqual(config.MyClass.bar, 10)
237 self.assertEqual(config.n, True)
238 self.assertEqual(config.Global.bam, "wow")
239
240 def test_list_args(self):
241 cl = MyLoader1()

Callers

nothing calls this directly

Calls 2

MyLoader1Class · 0.85
load_configMethod · 0.45

Tested by

no test coverage detected