Coverage for src/pytest_samples/plugin/_broker_nostate.py: 100%
7 statements
« prev ^ index » next coverage.py v7.4.2, created at 2024-02-20 19:47 +0000
« prev ^ index » next coverage.py v7.4.2, created at 2024-02-20 19:47 +0000
1from pytest import hookimpl as _hookimpl, Item as _Item
2from typing import List as _List
4from ._broker_base import SamplesBrokerBase as _SamplesBrokerBase
7class NoStateSamplesBroker(_SamplesBrokerBase):
9 @_hookimpl(trylast=True)
10 def pytest_collection_modifyitems(self, items: _List[_Item]) -> None:
11 """The function called for the pytest "collection_modifyitems"
12 hook.
14 Args:
15 items (List[Item]): The list of collected items.
16 """
17 self._shuffle_items(items)