Metadata-Version: 2.1
Name: loguru-caplog
Version: 0.2.0
Summary: Сaptures loguru logging output
Home-page: UNKNOWN
Author: Dinn757
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: loguru
Requires-Dist: pytest

# loguru-caplog

Сaptures loguru logging output.

Source: [Making things work with Pytest and caplog](https://loguru.readthedocs.io/en/0.4.1/resources/migration.html#making-things-work-with-pytest-and-caplog)

## Usage

```python
from loguru_caplog import loguru_caplog as caplog

# `some_func` adds two numbers, and logs a warning if the first is < 1
def test_some_func_logs_warning(caplog):
    assert some_func(-1, 3) == 2
    assert "Oh no!" in caplog.text
```

