PyTest - Parametrize
Identify the error in this parametrize usage:
@pytest.mark.parametrize('x', [1, 2], ids='one', 'two')
def test_x(x):
assert x > 0@pytest.mark.parametrize('x', [1, 2], ids='one', 'two')
def test_x(x):
assert x > 0ids argument must be a single iterable (like a list) of strings.ids='one', 'two' passes two separate strings, which is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions