papaeye / pytest-httpretty

A thin wrapper of HTTPretty for pytest
20 stars 6 forks source link

use `get_closest_marker` instead of `get_marker` #3

Open Nicusor97 opened 5 years ago

Nicusor97 commented 5 years ago

In the latest version of pytest was removed the get_marker method .

4546: Remove Node.get_marker(name) the return value was not usable for more than a existence check.

Use Node.get_closest_marker(name) as a replacement. Link to the pytest changelog : https://docs.pytest.org/en/latest/changelog.html

gillesdouaire commented 5 years ago

Would that also be compatible with older versions of pytest?

Nicusor97 commented 5 years ago

hmm , you are right ! It should be compatible with all pytest versions and If I will make some changes , it should be compatible . Wait until I will push a new commit

Nicusor97 commented 5 years ago

Now , this module will be compatible with all pytest version ! Thanks @gillesdouaire .