Сaptures loguru logging output
Project description
loguru-caplog
Сaptures loguru logging output.
Source: Making things work with Pytest and caplog
Usage
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loguru-caplog-0.1.0.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8bc3cb44894666e6bb6f8f86ee5bf65a88ab4546be5086bb94d0a34e06df987 |
|
MD5 | 33008501ed171929198bd830584a1e5f |
|
BLAKE2b-256 | 8e6fd8e77b64c466b2c0b2622d7be4a7d7d5927fc982c660ab5d5248c549365c |