_pytest.mark.legacy module¶
this is a place where we put datastructures used by legacy apis we hope to remove
-
class
MarkMapping
(own_mark_names)[source]¶ Bases:
object
Provides a local mapping for markers where item access resolves to True if the marker is present.
-
class
KeywordMapping
(names)[source]¶ Bases:
object
Provides a local mapping for keywords. Given a list of names, map any substring of one of these names to True.
-
matchmark
(colitem, markexpr)[source]¶ Tries to match on any marker names, attached to the given colitem.
-
matchkeyword
(colitem, keywordexpr)[source]¶ Tries to match given keyword expression to given collector item.
Will match on the name of colitem, including the names of its parents. Only matches names of items which are either a
Class
or aFunction
. Additionally, matches on names in the ‘extra_keyword_matches’ set of any item, as well as names directly assigned to test functions.