pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Access parametrization ids

Open cazier opened this issue 1 month ago • 0 comments

This PR adds a new attribute to the Callspec2 class to provide the ID associated with a particular set of parametrizations.

We are using the parametrization data in a report generation tool we use, and accessing the IDs (particularly when it's either defined as the ids=[<parametrization names>] or ids=<parametrization function>) is not trivial as is.

Some tests are added to demonstrate the feature, particularly with different object types used in the parametrizations.

cazier avatar Nov 09 '25 15:11 cazier