Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/e/delgado-0.0.1/delgado/tests/test_main.py   delgado(Download)
    def test_get_help_with_no_args(self, capsys):
        with raises(SystemExit):
            main.Delgado([])
        out, err = capsys.readouterr()
        assert err == ''
        assert 'Version:' in out
 
    def test_load_pytest(self, capsys):
        main.Delgado(['delgado', '--log', 'debug'])
    def test_info_logger_doesnt_show_plugin_loading(self, capsys):
        main.Delgado(['delgado', '--logging', 'info'])
        out, err = capsys.readouterr()
        assert 'loading pytest' not in out
 
    def test_unkown_command(self, capsys):
        main.Delgado(['delgado', '--foo', 'info'])