MCPcopy
hub / github.com/pytest-dev/pytest / pytest_collect_directory

Function pytest_collect_directory

src/_pytest/main.py:475–478  ·  view source on GitHub ↗
(
    path: Path, parent: nodes.Collector
)

Source from the content-addressed store, hash-verified

473
474
475def pytest_collect_directory(
476 path: Path, parent: nodes.Collector
477) -> nodes.Collector | None:
478 return Dir.from_parent(parent, path=path)
479
480
481def pytest_collection_modifyitems(items: list[nodes.Item], config: Config) -> None:

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…