Use more descriptive variable names

Co-authored-by: Donghyun Kim <digitalisx99@gmail.com>
This commit is contained in:
fgomulka
2022-07-16 16:35:26 -05:00
committed by GitHub
co-authored by Donghyun Kim
parent f295e5d91a
commit 3e748e7d48
+2 -2
View File
@@ -21,8 +21,8 @@ def pytest_generate_tests(metafunc):
"""Parameterize tests based on image names"""
images = metafunc.config.getoption('image')
for d in metafunc.config.getoption('image_dir'):
images = images + [os.path.join(d, x) for x in os.listdir(d)]
for image_dir in metafunc.config.getoption('image_dir'):
images = images + [os.path.join(image_dir, dir) for dir in os.listdir(image_dir)]
# tests with "image" parameter are run against images
if 'image' in metafunc.fixturenames: