Uses test id from the first value.
(*values)
| 617 | |
| 618 | |
| 619 | def param(*values): |
| 620 | """Uses test id from the first value.""" |
| 621 | first = values[0] |
| 622 | _id = ( |
| 623 | ",".join(first) |
| 624 | if isinstance(first, Iterable) and not isinstance(first, str) |
| 625 | else first |
| 626 | ) |
| 627 | return pytest.param(*values, id=_id) |
| 628 | |
| 629 | |
| 630 | @pytest.mark.parametrize( |