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

Method __init__

src/_pytest/python.py:655–675  ·  view source on GitHub ↗
(
        self,
        fspath: None,
        parent: nodes.Collector,
        # NOTE: following args are unused:
        config=None,
        session=None,
        nodeid=None,
        path: Path | None = None,
    )

Source from the content-addressed store, hash-verified

653 """
654
655 def __init__(
656 self,
657 fspath: None,
658 parent: nodes.Collector,
659 # NOTE: following args are unused:
660 config=None,
661 session=None,
662 nodeid=None,
663 path: Path | None = None,
664 ) -> None:
665 # NOTE: Could be just the following, but kept as-is for compat.
666 # super().__init__(self, fspath, parent=parent)
667 session = parent.session
668 super().__init__(
669 fspath=fspath,
670 path=path,
671 parent=parent,
672 config=config,
673 session=session,
674 nodeid=nodeid,
675 )
676
677 def setup(self) -> None:
678 init_mod = importtestmodule(self.path / "__init__.py", self.config)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected