From dc5fd831ed9f4a0c58a194853ffa9cce6c240026 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Thu, 13 Oct 2022 17:13:45 +0200 Subject: [PATCH] improve test id for consistency tests (#6763) --- test/test_prototype_transforms_consistency.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_prototype_transforms_consistency.py b/test/test_prototype_transforms_consistency.py index f335220fb29..589d4559525 100644 --- a/test/test_prototype_transforms_consistency.py +++ b/test/test_prototype_transforms_consistency.py @@ -575,9 +575,11 @@ def check_call_consistency(prototype_transform, legacy_transform, images=None, s @pytest.mark.parametrize( ("config", "args_kwargs"), [ - pytest.param(config, args_kwargs, id=f"{config.legacy_cls.__name__}({args_kwargs})") + pytest.param( + config, args_kwargs, id=f"{config.legacy_cls.__name__}-{idx:0{len(str(len(config.args_kwargs)))}d}" + ) for config in CONSISTENCY_CONFIGS - for args_kwargs in config.args_kwargs + for idx, args_kwargs in enumerate(config.args_kwargs) ], ) def test_call_consistency(config, args_kwargs):