С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.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d537a848d92b7d3214cae5c48df70df8c8b67d7c4d3dcec4fbbdaac940b9c9b7 |
|
MD5 | b00e203f6ccb3c3c4ed516a8d1ddafa1 |
|
BLAKE2b-256 | 1318c733e1f5c54326ce2004c71c1ea39a7a80a10cc6f0e0a49b2725d437551e |