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

Function get_unpacked_marks

src/_pytest/mark/structures.py:363–368  ·  view source on GitHub ↗

Obtain the unpacked marks that are stored on an object.

(obj: object)

Source from the content-addressed store, hash-verified

361
362
363def get_unpacked_marks(obj: object) -> Iterable[Mark]:
364 """Obtain the unpacked marks that are stored on an object."""
365 mark_list = getattr(obj, "pytestmark", [])
366 if not isinstance(mark_list, list):
367 mark_list = [mark_list]
368 return normalize_mark_list(mark_list)
369
370
371def normalize_mark_list(

Callers 3

objMethod · 0.90
__init__Method · 0.90
store_markFunction · 0.85

Calls 1

normalize_mark_listFunction · 0.85

Tested by

no test coverage detected