С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.6.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c97a2ec70319aa219b8e2664323a7f66d52ade1e068afc5553a7b097d93776 |
|
MD5 | f0b3fe29a66bb63803d4b965d560a763 |
|
BLAKE2b-256 | 5add938eebdb2e6b071a1a2178233adc0848db25b6d02acd4479b9e9f62fa6e2 |