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

Method iter_markers

src/_pytest/nodes.py:360–365  ·  view source on GitHub ↗

Iterate over all markers of the node. :param name: If given, filter the results by the name attribute.

(self, name: Optional[str] = None)

Source from the content-addressed store, hash-verified

358 self.own_markers.insert(0, marker_.mark)
359
360 def iter_markers(self, name: Optional[str] = None) -> Iterator[Mark]:
361 """Iterate over all markers of the node.
362
363 :param name: If given, filter the results by the name attribute.
364 """
365 return (x[1] for x in self.iter_markers_with_node(name=name))
366
367 def iter_markers_with_node(
368 self, name: Optional[str] = None

Callers 15

get_closest_markerMethod · 0.95
evaluate_skip_marksFunction · 0.80
evaluate_xfail_marksFunction · 0.80
copy_exampleMethod · 0.80
catch_warnings_for_itemFunction · 0.80
pytest_generate_testsFunction · 0.80
__init__Method · 0.80
getfixtureinfoMethod · 0.80
pytest_generate_testsMethod · 0.80
from_itemMethod · 0.80
from_itemMethod · 0.80

Calls 1

Tested by 5

copy_exampleMethod · 0.64
assert_markersMethod · 0.64
test_addmarker_orderFunction · 0.64