-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental: Use param ids for reordering items
Determining if parameters are "the same" is difficult for pytest: - some user provided parameters may not be comparable/hashable - some are, but their equality/hash is determined by identity rather than by value, which is likely not a good grouping criterion - implicit fallbacks are likely to surprise the the user To solve this, we now rely on the parameter id as it was given via pytest.param(id=...,) or autogenerated by pytest. This way a user can explicitely tell pytest which parameters are "the same". This commit is somewhat larger, becuase we must take care that SubRequests and reordering agree in their meaning of "the same".
- Loading branch information
Tobias Deiminger
committed
Dec 9, 2021
1 parent
2fdbc3e
commit dfc773e
Showing
3 changed files
with
96 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters