1
0
Fork 0

Adding upstream version 2.10.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:23:33 +01:00
parent 5f54aad01b
commit b51ea48cbd
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
17 changed files with 286 additions and 39 deletions

View file

@ -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'))