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

Method collect

src/_pytest/nodes.py:524–527  ·  view source on GitHub ↗

Return a list of children (items and collectors) for this collection node.

(self)

Source from the content-addressed store, hash-verified

522 """An error during collection, contains a custom message."""
523
524 def collect(self) -> Iterable[Union["Item", "Collector"]]:
525 """Return a list of children (items and collectors) for this
526 collection node."""
527 raise NotImplementedError("abstract")
528
529 # TODO: This omits the style= parameter which breaks Liskov Substitution.
530 def repr_failure( # type: ignore[override]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected