Skip to main content

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

Project description

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")

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

pytest-deprecate-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pytest-deprecate-1.0.0.tar.gz.

File metadata

  • Download URL: pytest-deprecate-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest-deprecate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d5c4f80406f3c627639437353665c92e89a6558ff3bff113b691640313eb523
MD5 9715ade3cf4eb69f41d87d38b1b95b01
BLAKE2b-256 28f32037a7333e70a2c53feda5687d91bc8100c58cffe2b82dfec78c4e64825a

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