Пример #1
0
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
Пример #2
0
def pytest_collection_modifyitems(session: Session, config, items: list):

    items.reverse()
    session.items = items
Пример #3
0
 def pytest_collection_finish(self, session: Session) -> None:
     session.items = self.service.filter_test_items(session.items)