pytest-log-filter
屏蔽pytest测试中指定loggers的日志
如何使用
- 安装
pytest-log-filter
使用pip安装
pip install pytest-log-filter
- 在pytest命令行参数使用--log-ignore指定要屏蔽的logger模块
pytest . --log-ignore=urllib3.connectionpool --log-ignore=web3.manager.RequestManager
或在pytest.ini中配置
[pytest]
log_ignore =
web3.providers.HTTPProvider
web3._utils.http_session_manager.HTTPSessionManager
同时使用命令行参数--log-ignore和pytest-ini配置,会屏蔽所有的loggers
Metadata
Release files for pytest-log-filter 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_log_filter-0.0.3.tar.gz | 3.4 kB | Without provenance | Details for pytest_log_filter-0.0.3.tar.gz |
Release files / pytest_log_filter-0.0.3.tar.gz
| Download URL | pytest_log_filter-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02634226e3b4c015780729e8e57f53c3b090769d7698cca43ca6d6f318e6de2d
|
|
BLAKE2b-256 checksum How to use checksums |
4548084508412e0e25da5d786c5c297cc19a15128ad2ee59d10e3d2060a4f87e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for pytest-log-filter 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.