Folders and filesNameNameLast commit messageLast commit datepytest_logdogpytest_logdog.gitignore.gitignoreCHANGELOG.mdCHANGELOG.mdDESIGN.mdDESIGN.mdLICENSELICENSEREADME.mdREADME.mdTODO.mdTODO.mdsetup.cfgsetup.cfgsetup.pysetup.pytests.pytests.py READMEMIT license pytest-logdog: Pytest plugin to test logging Usage 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() Links Rationale and design Change log
pytest-logdog: Pytest plugin to test logging Usage 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() Links Rationale and design Change log