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

Method collect

src/_pytest/python.py:563–567  ·  src/_pytest/python.py::Module.collect
(self)

Source from the content-addressed store, hash-verified

561 return importtestmodule(self.path, self.config)
562
563 def collect(self) -> Iterable[nodes.Item | nodes.Collector]:
564 self._register_setup_module_fixture()
565 self._register_setup_function_fixture()
566 self.session._fixturemanager.parsefactories(self)
567 return super().collect()
568
569 def _register_setup_module_fixture(self) -> None:
570 class="st">"""Register an autouse, module-scoped fixture for the collected module object

Callers

nothing calls this directly

Calls 4

parsefactoriesMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected