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
Where the arguments are represented as b-a despite the test argument order being a, b.
I suspect this is because the decorators are applied from bottom to top (and indeed swapping them also generates "nicer" IDs). But I wonder if we could/should do better in cases where the parameters directly correspond to test arguments.
The text was updated successfully, but these errors were encountered:
Someone in a pytest training of mine was surprised that:
results in pytest collecting:
test_permutations[b1-a1]
test_permutations[b1-a2]
test_permutations[b2-a1]
test_permutations[b2-a2]
Where the arguments are represented as
b-a
despite the test argument order beinga, b
.I suspect this is because the decorators are applied from bottom to top (and indeed swapping them also generates "nicer" IDs). But I wonder if we could/should do better in cases where the parameters directly correspond to test arguments.
The text was updated successfully, but these errors were encountered: