С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.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13924be83b73aa7e6f63ef6ca121537e59929258b60db6678b48cc130c7945a |
|
MD5 | d817b4ec0fec45a7b4d55ca68a53fc04 |
|
BLAKE2b-256 | 636aa65c3401bdc71c91bd5631e604483b53b988d99da07ca4a51b91428b235a |