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

Function test_show_config

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

Source from the content-addressed store, hash-verified

752
753
754def test_show_config(capsys):
755 cfg = Config()
756 cfg.MyApp.i = 5
757 # don't show empty
758 cfg.OtherApp
759
760 app = MyApp(config=cfg, show_config=True)
761 app.start()
762 out, err = capsys.readouterr()
763 assert "MyApp" in out
764 assert "i = 5" in out
765 assert "OtherApp" not in out
766
767
768def test_show_config_json(capsys):

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…