aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/py/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/py/lib/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/py/lib/tests.py b/test/py/lib/tests.py
index a676021..fe90f96 100644
--- a/test/py/lib/tests.py
+++ b/test/py/lib/tests.py
@@ -14,8 +14,10 @@ def my_parametrize(names, values, ids=None, **kwargs):
if len(_names) == 1:
ids = [f'{names}={v}' for v in values]
else:
+ _values = [combination.values if hasattr(combination, 'values') else combination
+ for combination in values]
ids = [
'-'.join(f'{k}={v}' for k, v in zip(_names, combination))
- for combination in values
+ for combination in _values
]
return pytest.mark.parametrize(names, values, ids=ids, **kwargs)