-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity
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.
Metadata
Metadata
Assignees
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity