papaeye / pytest-httpretty

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

Node.get_marker not available anymore #5

Open frbaron opened 5 years ago

frbaron commented 5 years ago

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 = <Function test_get_kcmd>, nextitem = <Function test_check_conn>

    def pytest_runtest_teardown(item, nextitem):
>       marker = item.get_marker('httpretty')
E       AttributeError: 'Function' object has no attribute 'get_marker'

/usr/local/lib/python2.7/site-packages/pytest_httpretty.py:22: AttributeError