Metadata-Version: 2.4
Name: pytest-logdog
Version: 0.1.0
Summary: Pytest plugin to test logging
Home-page: https://github.com/ods/pytest-logdog
Author: Denis Otkidach
Author-email: denis.otkidach@gmail.com
License: MIT
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Testing
Classifier: Framework :: Pytest
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest>=6.2.0
Dynamic: license-file

# pytest-logdog: Pytest plugin to test logging

## Usage

```python
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](https://github.com/ods/pytest-logdog/blob/master/DESIGN.md)
* [Change log](https://github.com/ods/pytest-logdog/blob/master/CHANGELOG.md)
