PyTest - Parametrize
What is wrong with this pytest code snippet?
@pytest.fixture
def setup_data(request):
return request.param + 1
@pytest.mark.parametrize('setup_data', [10, 20])
def test_increment(setup_data):
assert setup_data in [11, 21]