mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Make autoupdate --tags-only the default, add --bleeding-edge
This commit is contained in:
parent
1be4e4f82e
commit
918179849d
4 changed files with 28 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue