pytest-httpretty
pytest-httpretty copied to clipboard
A thin wrapper of HTTPretty for pytest
setup.py only says BSD; doesnt mention if it is BSD-2-Clause or BSD-3-Clause
https://docs.pytest.org/en/latest/historical-notes.html#update-marker-code A compatible function has been introduced, and allows tests to run fine. python 2.7 pytest 4.5.0 pytest-cov 2.7.1 pytest-httpretty 0.2.0 pytest-remotedata 0.3.1 all unit tests fails on ``` item...
Method Node.get_marker was removed in pytest 4.1 ``` def pytest_runtest_setup(item): > marker = item.get_marker('httpretty') E AttributeError: 'Function' object has no attribute 'get_marker' ``` ``` > marker = item.get_marker('httpretty') E AttributeError:...
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...
Markers cannot be used in fixtures itself so for better re-usability of fixtures depending on httpretty adding httpretty fixture