use `get_closest_marker` instead of `get_marker`
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
Would that also be compatible with older versions of pytest?
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
Now , this module will be compatible with all pytest version ! Thanks @gillesdouaire .