С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.2.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for loguru_caplog-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fb1e7afabf866de7b68bd728837e3bd0b03b69b915e9c3606fbd083fd4baaf8 |
|
MD5 | 5b887ea1901059fad8feff6bb5020ff7 |
|
BLAKE2b-256 | caf868a8c0234e5a12cff96f12da4eb5e36c50b55964bd500719eca31cb44a16 |