Mark tests as testing a deprecated feature with a warning note.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pytest-deprecate-1.0.1.tar.gz
.
File metadata
- Download URL: pytest-deprecate-1.0.1.tar.gz
- Upload date:
- Size: 3.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0682f8c704f836ca6b4eeb1a80f80f4070f01ba3a270f61d9f871d9901e23409 |
|
MD5 | 6b2b7e04d0f5729eab6b37d83de20fdf |
|
BLAKE2b-256 | 8af201fbdb5964f53a124a9781e716dd379dc8d2971ac4022a45054a2aaae339 |