Skip to main content

pytest-deprecate

Mark tests as testing a deprecated feature with a warning note.

Requirement Status Coverage Status Version

Commits since latest release Supported versions Supported implementations

Installation

pip install pytest-deprecate

Usage

@pytest.mark.deprecated("This feature will be dropped in 2.7")
def test_old_feature():
    assert True

Output:

=========================================================================================================================== warnings summary ============================================================================================================================
example/test_file.py::test_dummy
  /Users/mikailkocak/Development/pytest-deprecate/example/test_file.py:4: UserWarning: test_file:test_dummy is testing a deprecated feature: This feature will be removing in 2.7
    @pytest.mark.deprecated("This feature will be removing in 2.7")

Metadata

Release files for pytest-deprecate 1.0.2

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

Source distribution (sdist)

Source distribution for pytest-deprecate 1.0.2
File Size Uploaded Provenance Actions
pytest-deprecate-1.0.2.tar.gz 3.3 kB Without provenance Details for pytest-deprecate-1.0.2.tar.gz

Release files / pytest-deprecate-1.0.2.tar.gz

Download URL pytest-deprecate-1.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d147e1fb02d7ba131543b246354f0707ca9457640f8f02e2f2768e3662fb5e9f
BLAKE2b-256 checksum
How to use checksums
4e486ce28519497663b52105071d12a034922cc933fcbf43b3c7140607835d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Security for pytest-deprecate 1.0.2

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.

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