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

Function test_show_config_json

tests/config/test_application.py:768–777  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

766
767
768def test_show_config_json(capsys):
769 cfg = Config()
770 cfg.MyApp.i = 5
771 cfg.OtherApp
772
773 app = MyApp(config=cfg, show_config_json=True)
774 app.start()
775 out, err = capsys.readouterr()
776 displayed = json.loads(out)
777 assert Config(displayed) == cfg
778
779
780def test_deep_alias():

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
ConfigClass · 0.90
MyAppClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…