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

Function pytest_collect_directory

doc/en/example/customdirectory/conftest.py:25–30  ·  view source on GitHub ↗
(path, parent)

Source from the content-addressed store, hash-verified

23
24@pytest.hookimpl
25def pytest_collect_directory(path, parent):
26 # Use our custom collector for directories containing a `manifest.json` file.
27 if path.joinpath("manifest.json").is_file():
28 return ManifestDirectory.from_parent(parent=parent, path=path)
29 # Otherwise fallback to the standard behavior.
30 return 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…