mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Only configure logging inside the context
This commit is contained in:
parent
bdc58cc33f
commit
e4f0b4c1b7
3 changed files with 14 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ import pytest
|
|||
import six
|
||||
|
||||
from pre_commit import output
|
||||
from pre_commit.logging_handler import add_logging_handler
|
||||
from pre_commit.logging_handler import logging_handler
|
||||
from pre_commit.store import Store
|
||||
from pre_commit.util import cmd_output
|
||||
from testing.fixtures import git_dir
|
||||
|
|
@ -155,7 +155,8 @@ def dont_write_to_home_directory():
|
|||
|
||||
@pytest.fixture(autouse=True, scope='session')
|
||||
def configure_logging():
|
||||
add_logging_handler(use_color=False)
|
||||
with logging_handler(use_color=False):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue