mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
replace fake_log_handler with caplog
This commit is contained in:
parent
bb50e00447
commit
c7cbb1e6ad
2 changed files with 8 additions and 16 deletions
|
|
@ -261,15 +261,6 @@ def cap_out():
|
|||
yield Fixture(stream)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fake_log_handler():
|
||||
handler = mock.Mock(level=logging.INFO)
|
||||
logger = logging.getLogger('pre_commit')
|
||||
logger.addHandler(handler)
|
||||
yield handler
|
||||
logger.removeHandler(handler)
|
||||
|
||||
|
||||
@pytest.fixture(scope='session', autouse=True)
|
||||
def set_git_templatedir(tmpdir_factory):
|
||||
tdir = str(tmpdir_factory.mktemp('git_template_dir'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue