Skip to main content

С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 details)

Uploaded Source

Built Distribution

loguru_caplog-0.2.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file loguru-caplog-0.2.0.tar.gz.

File metadata

  • Download URL: loguru-caplog-0.2.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for loguru-caplog-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2ebc354a3e45b41498539bc71311b670668a81d3412de6f60ee74c9407a472ed
MD5 92cffbe6b209f979106c22e19c5d0e18
BLAKE2b-256 6e2a3fe40a9d04601f05988fd43c26a9b98e17448664bcd7a5dcf547372e3311

See more details on using hashes here.

File details

Details for the file loguru_caplog-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: loguru_caplog-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for loguru_caplog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fb1e7afabf866de7b68bd728837e3bd0b03b69b915e9c3606fbd083fd4baaf8
MD5 5b887ea1901059fad8feff6bb5020ff7
BLAKE2b-256 caf868a8c0234e5a12cff96f12da4eb5e36c50b55964bd500719eca31cb44a16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page