С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.5.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2e9af97c2366329fef667f54f8443c3b041d65b4810bcbd9fb7a2af6fd8c40c |
|
MD5 | 703d2dde128fa70c4f09e02776a7e0ea |
|
BLAKE2b-256 | bf7d9d8d556aafa2561ec5a660fcf8af2c9be9966e0f1875477758b2250e4b79 |