Pytest plugin to test logging
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-logdog-0.1.0.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for pytest_logdog-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5a4c46442ca7da73b1cf6c9ebea144958a0a6258ba19ad7bf877dec22400e8 |
|
MD5 | a91e6e60bb445aafa325842c4ac74c0b |
|
BLAKE2b-256 | 1986f3716547f113acc07167baeff445c2c5445cdbdb0411295fc24dd0a4b53e |