parameterize argvalues with a mapping #3588
Labels
topic: parametrize
related to @pytest.mark.parametrize
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
The current syntax for providing an id along with a parameter set is:
I'd like to get peoples' opinions about an alternative syntax:
The rationale, other than the alternative being shorter, is that (it seems to me) that mappings are natural for pairing identifiers and data. If we have to decide on a way to interpret someone passing a mapping into
argvalues
, I think that'll be a natural one.P.S. currently, if you pass a dictionary as
argvalues
, its keys are iterated and the values are discardedThe text was updated successfully, but these errors were encountered: