Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

pytest-max-warnings

[!IMPORTANT] This plugin and codebase are archived. As of pytest 9.1.0, the --max-warnings option is built into pytest itself. See the pytest documentation for details. No further releases of this plugin are planned.

A Pytest plugin to exit non-zero exit code when the configured maximum warnings has been exceeded.

Installation

You can install "pytest-max-warnings" via pip:

pip install pytest-max-warnings

or any other package manager you prefer.

Usage

You can set the maximum number of warnings allowed by using the --max-warnings option:

pytest --max-warnings 10

If the number of warnings exceeds the maximum, the test run will exit with a non-zero exit code.

License

Distributed under the terms of the MIT license, "pytest-max-warnings" is free and open source software. See LICENSE for more details.

Authors

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_max_warnings-0.1.0.post1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_max_warnings-0.1.0.post1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest_max_warnings-0.1.0.post1.tar.gz.

File metadata

File hashes

Hashes for pytest_max_warnings-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 8a044f39fb4e0cc0d1246a5f5b99c0e193f7181241840791c7566ce51d579d6e
MD5 a5cf26cc6801a3b477d6b015ff500f80
BLAKE2b-256 6965a546ca58b192606630eb1cc9c24d529a1b21a6bb790b60460ce7eef54d16

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_max_warnings-0.1.0.post1.tar.gz:

Publisher: publish.yml on miketheman/pytest-max-warnings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytest_max_warnings-0.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_max_warnings-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 685c08c13120e2323d5d2138979506a40f799e5be2c0a10d96b2a1c776bce15d
MD5 666b92102cdd5b35fbe1235184eeb6cd
BLAKE2b-256 c12cd72ad5df7c4c1cdeafcf916678ecab0d30361e45a9b7a6442c1086403c05

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_max_warnings-0.1.0.post1-py3-none-any.whl:

Publisher: publish.yml on miketheman/pytest-max-warnings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page