Sign in
cobalt
/
pre-commit-hooks
/
13b4ca54cf700d34d5ae22e508583a9198a59d9a
/
.
/
tests
/
conftest.py
blob: 762b31d49dceb0e73d9b0200124eaaef93abcfe5 [
file
] [
log
] [
blame
]
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