С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.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be902526fefc81cdb48ab78ec1d6f2323895fb293be87ab2ac854624adf401e5 |
|
MD5 | e86991a6c8a77d44cadb87b9d7651a27 |
|
BLAKE2b-256 | d033782c1b81c4e9a2d066a8522ceda9d0eaab6a716d001bd230818305df32fe |