pytest_plugins = ["pytest_logdog"]
def test_it_works(logdog):
with logdog() as pile:
logging.info("Hello world!")
[rec] = pile.drain(message="Hello.*")
assert rec.levelno == logging.INFO
assert pile.is_empty()
ods / pytest-logdog Goto Github PK
View Code? Open in Web Editor NEWLog capturing for pytest with usable interface
License: MIT License