Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyankiyoshi/pytest-deprecate
Mark your deprecated features tests with a reason.
https://github.com/nyankiyoshi/pytest-deprecate
Last synced: 21 days ago
JSON representation
Mark your deprecated features tests with a reason.
- Host: GitHub
- URL: https://github.com/nyankiyoshi/pytest-deprecate
- Owner: NyanKiyoshi
- License: mit
- Created: 2019-06-25T15:07:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T10:14:17.000Z (over 5 years ago)
- Last Synced: 2024-11-29T05:57:07.257Z (24 days ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Installation
```
pip install pytest-deprecate
```## Usage
```python
@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")
```