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

Method test_add_arguments

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

Source from the content-addressed store, hash-verified

221 self.assertEqual(config.Global.bam, "wow")
222
223 def test_add_arguments(self):
224 cl = MyLoader2()
225 config = cl.load_config("2 frobble".split())
226 self.assertEqual(config.subparser_name, "2")
227 self.assertEqual(config.y, "frobble")
228 config = cl.load_config("1 -x frobble".split())
229 self.assertEqual(config.subparser_name, "1")
230 self.assertEqual(config.Global.x, "frobble")
231
232 def test_argv(self):
233 cl = MyLoader1(argv="-f hi -b 10 -n wow".split())

Callers

nothing calls this directly

Calls 2

MyLoader2Class · 0.85
load_configMethod · 0.45

Tested by

no test coverage detected