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:
parent
2d9dac95ec
commit
607f7603af
|
@ -170,6 +170,8 @@ def pytest_load_initial_conftests(early_config, parser, args):
|
||||||
def pytest_collection(session: "Session") -> Optional[Any]:
|
def pytest_collection(session: "Session") -> Optional[Any]:
|
||||||
"""Perform the collection protocol for the given session.
|
"""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`.
|
Stops at first non-None result, see :ref:`firstresult`.
|
||||||
|
|
||||||
:param _pytest.main.Session session: the pytest session object
|
:param _pytest.main.Session session: the pytest session object
|
||||||
|
|
Loading…
Reference in New Issue