provide a rich collection object in the pytest_modifyitems hook #1373
Labels
type: enhancement
new feature or API change, should be merged into features branch
type: feature-branch
new feature or API change, should be merged into features branch
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
type: refactoring
internal improvements to the code
plugins that modify the collection have to consider a number of error-prone details
stable sorting/fixture order for those that reorder,
notifying of deselection for those that remove test items
a rough first idea of an potential api could be something like:
the new api should be active by default, but completely revert to the old list-like behavior in case someone does a list operation
in case the behavior is reverted, a pytest warning should be issued on reverting, and in each usage of the new api
this would also help to make #1372 more nice
The text was updated successfully, but these errors were encountered: