Closed
Description
staticmethod
test fails if you declare it in a superclass:
@pytest.fixture
def fixture():
return True
class TestFoo:
@staticmethod
def test_me(fixture):
assert fixture
class TestBar(TestFoo):
...
TestBar.test_me
fails due to the TypeError: test_me() missing 1 required positional argument: 'fixture'
.
TestFoo.test_me
passes correctly.