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

Method collect

src/_pytest/python.py:512–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510 return self._importtestmodule()
511
512 def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
513 self._inject_setup_module_fixture()
514 self._inject_setup_function_fixture()
515 self.session._fixturemanager.parsefactories(self)
516 return super().collect()
517
518 def _inject_setup_module_fixture(self) -> None:
519 """Inject a hidden autouse, module scoped fixture into the collected module object

Callers

nothing calls this directly

Calls 4

parsefactoriesMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected