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

Method __init__

src/pytest/collect.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class FakeCollectModule(ModuleType):
23 def __init__(self) -> None:
24 super().__init__("pytest.collect")
25 self.__all__ = list(COLLECT_FAKEMODULE_ATTRIBUTES)
26 self.__pytest = pytest
27
28 def __dir__(self) -> List[str]:
29 return dir(super()) + self.__all__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected