mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Add some tests for tests_should_end_in_test hook
This commit is contained in:
parent
d2e45f3400
commit
12794c1c19
3 changed files with 30 additions and 3 deletions
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
import __builtin__
|
||||
|
||||
import mock
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def print_mock():
|
||||
with mock.patch.object(__builtin__, 'print', autospec=True) as mock_print:
|
||||
yield mock_print
|
||||
Loading…
Add table
Add a link
Reference in a new issue