Skip to content

Commit

Permalink
improve test id for consistency tests (#6763)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Oct 13, 2022
1 parent e1b21f9 commit dc5fd83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_prototype_transforms_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dc5fd83

Please sign in to comment.