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

Method test_split_positional

tests/config/test_loader.py:459–464  ·  view source on GitHub ↗

Splitting positionals across flags is no longer allowed in traitlets 5

(self)

Source from the content-addressed store, hash-verified

457 assert cl.extra_args == ["a", "b", "c"]
458
459 def test_split_positional(self):
460 """Splitting positionals across flags is no longer allowed in traitlets 5"""
461 cl = self.klass(log=log) # type:ignore
462 argv = ["a", "--Class.trait=5", "b"]
463 with pytest.raises(SystemExit):
464 cl.load_config(argv)
465
466
467class TestConfig(TestCase):

Callers

nothing calls this directly

Calls 1

load_configMethod · 0.45

Tested by

no test coverage detected