mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
This commit is contained in:
parent
b90a598fac
commit
b9e5184ebd
32 changed files with 107 additions and 21 deletions
|
|
@ -146,6 +146,12 @@ def log_info_mock():
|
|||
yield mck
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def log_warning_mock():
|
||||
with mock.patch.object(logging.getLogger('pre_commit'), 'warning') as mck:
|
||||
yield mck
|
||||
|
||||
|
||||
class FakeStream(object):
|
||||
def __init__(self):
|
||||
self.data = io.BytesIO()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue