-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is there a way how can I mark parametrized test so that second, dependent, test will run only if first test passed on all parameters?
import pytest
import pytest_dependency
@pytest.mark.parametrize("x", [(True),(True)])
@pytest.mark.dependency()
def test_a(x):
if x:
pass
else:
assert 0
@pytest.mark.dependency(depends=["test_a"])
def test_b():
pass
I know that I can mark each parameter, but this would be easier if the test should pass on all parameters and there is a lot of them.
Now this passes on first two tests (i.e. test_a) and second (test_b) is skipped.
DevilXD and avirshup
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request