С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.0.tar.gz
(1.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loguru-caplog-0.1.0.tar.gz.
File metadata
- Download URL: loguru-caplog-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64795c87daf25b8c59fb831f4c13ef16b15703252a316cd9bd91d0af8bbf3f21
|
|
| MD5 |
289ee6982f5edd6701967be1301b4367
|
|
| BLAKE2b-256 |
1ed39136e9d615e73cfed3b78f1c1f0c5961687c74b2f588e1c98e3ddb304b7e
|
File details
Details for the file loguru_caplog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: loguru_caplog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8bc3cb44894666e6bb6f8f86ee5bf65a88ab4546be5086bb94d0a34e06df987
|
|
| MD5 |
33008501ed171929198bd830584a1e5f
|
|
| BLAKE2b-256 |
8e6fd8e77b64c466b2c0b2622d7be4a7d7d5927fc982c660ab5d5248c549365c
|