You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will maybe not be very understandable in more complex cases. Besides as of today if one tries to set the ids manually he will get an error ValueError: ids cannot be set on a union fixture.
I propose to (1) allow ids to be set on union fixtures, and (2) propose an additional "idstyle" argument with three options:
idstyle=None: a, b (current implementation): there is no way to distinguish this from other parameters
idstyle='compact': Ua, Ub
idstyle='explicit': c_is_a, c_is_b. This would become the default.
Note that this new parameter should be available in pytest_parametrize_plus too.
The text was updated successfully, but these errors were encountered:
Currently leads to the following ids:
It will maybe not be very understandable in more complex cases. Besides as of today if one tries to set the ids manually he will get an error
ValueError: ids cannot be set on a union fixture
.I propose to (1) allow ids to be set on union fixtures, and (2) propose an additional "idstyle" argument with three options:
idstyle=None
:a
,b
(current implementation): there is no way to distinguish this from other parametersidstyle='compact'
:Ua
,Ub
idstyle='explicit'
:c_is_a
,c_is_b
. This would become the default.Note that this new parameter should be available in
pytest_parametrize_plus
too.The text was updated successfully, but these errors were encountered: