diff options
-rw-r--r-- | test/conftest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/conftest.py b/test/conftest.py index 8e9009b6..0bc5cdf9 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -74,11 +74,11 @@ def pytest_generate_tests(metafunc): def generate_tests(versions): metafunc.fixturenames.append('tmp_ct') - metafunc.parametrize('tmp_ct', range(len(versions))) + metafunc.parametrize('tmp_ct', versions) - for i, version in enumerate(versions): + for version in versions: option.generated_tests[ - metafunc.function.__name__ + '[{}]'.format(i) + metafunc.function.__name__ + '[{}]'.format(version) ] = (type + ' ' + version) # take available module from option and generate tests for each version |