Make autoupdate --tags-only the default, add --bleeding-edge

This commit is contained in:
Anthony Sottile 2017-04-29 14:32:02 -07:00
parent 1be4e4f82e
commit 918179849d
4 changed files with 28 additions and 12 deletions

View file

@ -186,3 +186,12 @@ def cap_out():
with mock.patch.object(output, 'write', write):
with mock.patch.object(output, 'write_line', write_line):
yield Fixture(stream)
@pytest.yield_fixture
def fake_log_handler():
handler = mock.Mock(level=logging.INFO)
logger = logging.getLogger('pre_commit')
logger.addHandler(handler)
yield handler
logger.removeHandler(handler)