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

Method _collect_one_node

src/_pytest/main.py:886–897  ·  view source on GitHub ↗
(
        self,
        node: nodes.Collector,
        handle_dupes: bool = True,
    )

Source from the content-addressed store, hash-verified

884 return items
885
886 def _collect_one_node(
887 self,
888 node: nodes.Collector,
889 handle_dupes: bool = True,
890 ) -> tuple[CollectReport, bool]:
891 if node in self._collection_cache and handle_dupes:
892 rep = self._collection_cache[node]
893 return rep, True
894 else:
895 rep = collect_one_node(node)
896 self._collection_cache[node] = rep
897 return rep, False
898
899 def collect(self) -> Iterator[nodes.Item | nodes.Collector]:
900 # This is a cache for the root directories of the initial paths.

Callers 2

collectMethod · 0.95
genitemsMethod · 0.95

Calls 1

collect_one_nodeFunction · 0.90

Tested by

no test coverage detected