papaeye / pytest-httpretty

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

Plugin broken by pytest 4.1 #4

Open sboisson opened 5 years ago

sboisson commented 5 years ago

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: 'Function' object has no attribute 'get_marker'

Related pytest PR pytest-dev/pytest#4546

sboisson commented 5 years ago

See also #3