Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


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

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