-
-
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
Question: Can someone explain the below two uses of @pytest.mark.usefixtures and how does each of them work. I would like to understand the difference in the marker and fixture definition/usage.
@pytest.fixture()
def populateList(f):
assert 1 == 0
@pytest.mark.usefixtures(populateList)
def invokeFixture():
pass
@pytest.fixture()
def populateList(f):
assert 1 == 0
@pytest.mark.usefixtures("populateList")
def test_1():
assert 0 == 0
jtmoon79 and arindam31
Metadata
Metadata
Assignees
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity