(capsys)
| 766 | |
| 767 | |
| 768 | def 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 | |
| 780 | def test_deep_alias(): |