Skip to main content

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

Metadata

Release files for loguru-caplog 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loguru-caplog 0.2.0
File Size Uploaded
loguru-caplog-0.2.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for loguru-caplog 0.2.0
File Interpreter ABI Platform
loguru_caplog-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / loguru-caplog-0.2.0.tar.gz

Download URL loguru-caplog-0.2.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2ebc354a3e45b41498539bc71311b670668a81d3412de6f60ee74c9407a472ed
BLAKE2b-256 checksum
How to use checksums
6e2a3fe40a9d04601f05988fd43c26a9b98e17448664bcd7a5dcf547372e3311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12

Release files / loguru_caplog-0.2.0-py3-none-any.whl

Download URL loguru_caplog-0.2.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fb1e7afabf866de7b68bd728837e3bd0b03b69b915e9c3606fbd083fd4baaf8
BLAKE2b-256 checksum
How to use checksums
caf868a8c0234e5a12cff96f12da4eb5e36c50b55964bd500719eca31cb44a16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page