'Fixture to provide an argparser.
Monkey-patches .exit() of the argparser so it doesn\'t exit on errors.'

@pytest.fixture
def parser(self, mocker):

    parser = qutebrowser.get_argparser()
    mocker.patch.object(parser, 'exit', side_effect=Exception)
    return parser
