Forked from allanlewis/pytest_newline_before_output.py
Created
December 13, 2015 20:05
-
-
Save neoneo40/9f1bdab4bdaf9763c12a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.yield_fixture(scope='function', autouse=True) | |
def newline_before_logging(request): | |
if request.config.getoption('capture') == 'no': | |
print # new-line | |
yield |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment