Add some tests for tests_should_end_in_test hook

This commit is contained in:
Anthony Sottile 2014-03-18 21:25:36 -07:00
parent d2e45f3400
commit 12794c1c19
3 changed files with 30 additions and 3 deletions

11
tests/conftest.py Normal file
View 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