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

Method pytest_make_collect_report

src/_pytest/fixtures.py:1795–1803  ·  view source on GitHub ↗
(
        self, collector: nodes.Collector
    )

Source from the content-addressed store, hash-verified

1793
1794 @hookimpl(wrapper=True)
1795 def pytest_make_collect_report(
1796 self, collector: nodes.Collector
1797 ) -> Generator[None, CollectReport, CollectReport]:
1798 result = yield
1799 if isinstance(collector, nodes.Directory):
1800 plugin = self._pending_conftests.pop(collector.path, None)
1801 if plugin is not None:
1802 self.parsefactories(holder=plugin, node=collector)
1803 return result
1804
1805 def _flush_pending_conftests_to_session(self, session: Session) -> None:
1806 """Assign Session scope to initial conftests whose directories won't

Callers

nothing calls this directly

Calls 2

parsefactoriesMethod · 0.95
popMethod · 0.80

Tested by

no test coverage detected