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

Method test_cli_allow_none

tests/config/test_application.py:304–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

302 assert app.value == "cli"
303
304 def test_cli_allow_none(self):
305 class App(Application):
306 aliases = {"opt": "App.opt"}
307 opt = Unicode(allow_none=True, config=True)
308
309 app = App()
310 app.parse_command_line(["--opt=None"])
311 assert app.opt is None
312
313 def test_flags(self):
314 app = MyApp()

Callers

nothing calls this directly

Calls 2

parse_command_lineMethod · 0.80
AppClass · 0.70

Tested by

no test coverage detected