doc: pytest_collection: has to set `session.items`

Would make sense to use its return value etc, but this helps for now.
This commit is contained in:
Daniel Hahler 2020-03-31 09:38:51 +02:00
parent 2d9dac95ec
commit 607f7603af
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ def pytest_load_initial_conftests(early_config, parser, args):
def pytest_collection(session: "Session") -> Optional[Any]:
"""Perform the collection protocol for the given session.
The hook has to set `session.items` to a sequence of items.
Stops at first non-None result, see :ref:`firstresult`.
:param _pytest.main.Session session: the pytest session object