MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_collection_modifyitems

Function pytest_collection_modifyitems

src/_pytest/hookspec.py:244–253  ·  view source on GitHub ↗

Called after collection has been performed. May filter or re-order the items in-place. :param pytest.Session session: The pytest session object. :param pytest.Config config: The pytest config object. :param List[pytest.Item] items: List of item objects.

(
    session: "Session", config: "Config", items: List["Item"]
)

Source from the content-addressed store, hash-verified

242
243
244def pytest_collection_modifyitems(
245 session: "Session", config: "Config", items: List["Item"]
246) -> None:
247 """Called after collection has been performed. May filter or re-order
248 the items in-place.
249
250 :param pytest.Session session: The pytest session object.
251 :param pytest.Config config: The pytest config object.
252 :param List[pytest.Item] items: List of item objects.
253 """
254
255
256def pytest_collection_finish(session: "Session") -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected