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

Function pytest_pycollect_makemodule

src/_pytest/python.py:218–223  ·  view source on GitHub ↗
(module_path: Path, parent)

Source from the content-addressed store, hash-verified

216
217
218def pytest_pycollect_makemodule(module_path: Path, parent) -> "Module":
219 if module_path.name == "__init__.py":
220 pkg: Package = Package.from_parent(parent, path=module_path)
221 return pkg
222 mod: Module = Module.from_parent(parent, path=module_path)
223 return mod
224
225
226@hookimpl(trylast=True)

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected