how would one run a single test out of a set configured with parametrize? let's say i have the following test method:
@pytest.mark.parametrize(PARAMETERS_LIST, PARAMETERS_VALUES)
def test_my_feature(self, param1, param2, param3):
"""
test doc
"""
if param1 == 'value':
assert True
else:
print 'not value'
assert False
i have 3 parameters and I generate a list of 15 different possible values for them, to test the function on. how would i run just one of them? except the obvious way - giving a single value instead of 15.
Aucun commentaire:
Enregistrer un commentaire