С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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b317dd50b21e3a0d5758677eb2b679dd43a3ad77c99b10df8063edda17b7f243 |
|
MD5 | d2ef9b931736d9f490d94d9a9618799e |
|
BLAKE2b-256 | d8143d0bd34327e6d730e8c177a15f438c996b6c62761c55882fa8541c5c5640 |