def pytest_collection_modifyitems(session: Session, config, items: list): # called after collection is completed # you can modify the ``items`` list # items.reverse() session.items = items
def pytest_collection_modifyitems(session: Session, config, items: list): items.reverse() session.items = items
def pytest_collection_finish(self, session: Session) -> None: session.items = self.service.filter_test_items(session.items)