I would like to run test several times according to given list. I build the list according to a given file at the 'setup_module' section. Is it possible to do something like this?
data = []
def setup_module(module):
with open('data.json') as config_file:
configData = json.load(config_file)
data = fillData(configData)
@pytest.mark.parametrize("data", data)
def test_data(data):
for d in data:
.
.
.
Thanks, Avi