Each set of additional dependencies gets its own env

This commit is contained in:
Anthony Sottile 2018-02-24 14:29:32 -08:00
parent 29715c9268
commit b827694520
5 changed files with 62 additions and 112 deletions

View file

@ -165,12 +165,6 @@ def log_info_mock():
yield mck
@pytest.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()