fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
90
match
ref
function
match = re.match(r"(:?\w|:|\+|-|\.|\[|\]|\\|/)+", input[pos:])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
92
group
ref
function
value = match.group(0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
94
Token
ref
function
yield Token(TokenType.OR, value, pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
96
Token
ref
function
yield Token(TokenType.AND, value, pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
98
Token
ref
function
yield Token(TokenType.NOT, value, pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
100
Token
ref
function
yield Token(TokenType.IDENT, value, pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
103
ParseError
ref
function
raise ParseError(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
107
Token
ref
function
yield Token(TokenType.EOF, "", pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
109
accept
def
function
null
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
116
reject
ref
function
self.reject((type,))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
119
reject
def
function
def reject(self, expected: Sequence[TokenType]) -> "NoReturn": raise ParseError( self.current.pos + 1, "expected {}; got {}".format( " OR ".join(type.value for type in expected), self.current.type.value, ), )
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
120
ParseError
ref
function
raise ParseError(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
135
expression
def
function
def expression(s: Scanner) -> ast.Expression: if s.accept(TokenType.EOF): ret: ast.expr = ast.NameConstant(_False) else: ret = expr(s) s.accept(TokenType.EOF, reject=_True) return ast.fix_missing_locations(ast.Expression(ret))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
136
accept
ref
function
if s.accept(TokenType.EOF):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
140
accept
ref
function
s.accept(TokenType.EOF, reject=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
145
and_expr
ref
function
ret = and_expr(s)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
146
accept
ref
function
while s.accept(TokenType.OR):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
147
and_expr
ref
function
rhs = and_expr(s)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
152
and_expr
def
function
def and_expr(s: Scanner) -> ast.expr: ret = not_expr(s) while s.accept(TokenType.AND): rhs = not_expr(s) ret = ast.BoolOp(ast.And(), [ret, rhs]) return ret
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
153
not_expr
ref
function
ret = not_expr(s)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
154
accept
ref
function
while s.accept(TokenType.AND):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
155
not_expr
ref
function
rhs = not_expr(s)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
160
not_expr
def
function
def not_expr(s: Scanner) -> ast.expr: if s.accept(TokenType.NOT): return ast.UnaryOp(ast.Not(), not_expr(s)) if s.accept(TokenType.LPAREN): ret = expr(s) s.accept(TokenType.RPAREN, reject=_True) return ret ident = s.accept(TokenType.IDENT) if ident: return ast.Nam...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
161
accept
ref
function
if s.accept(TokenType.NOT):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
162
not_expr
ref
function
return ast.UnaryOp(ast.Not(), not_expr(s))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
163
accept
ref
function
if s.accept(TokenType.LPAREN):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
165
accept
ref
function
s.accept(TokenType.RPAREN, reject=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
167
accept
ref
function
ident = s.accept(TokenType.IDENT)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
170
reject
ref
function
s.reject((TokenType.NOT, TokenType.LPAREN, TokenType.IDENT))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
173
MatcherAdapter
def
class
__init__ __getitem__ __iter__ __len__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
180
matcher
ref
function
return self.matcher(key[len(IDENT_PREFIX) :])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
206
expression
ref
function
astexpr = expression(Scanner(input))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
206
Scanner
ref
function
astexpr = expression(Scanner(input))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
214
evaluate
def
function
def evaluate(self, matcher: Callable[[str], bool]) -> bool: """Evaluate the match expression. :param matcher: Given an identifier, should return whether it matches or not. Should be prepared to handle arbitrary strings as input. :returns: Whether the expression matc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
223
MatcherAdapter
ref
function
ret: bool = eval(self.code, {"__builtins__": {}}, MatcherAdapter(matcher))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
41
istestfunc
def
function
def istestfunc(func) -> bool: return callable(func) and getattr(func, "__name__", "<lambda>") != "<lambda>"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
45
get_empty_parameterset_mark
def
function
def get_empty_parameterset_mark( config: Config, argnames: Sequence[str], func
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
50
getfslineno
ref
function
fs, lineno = getfslineno(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
58
getini
ref
function
requested_mark = config.getini(EMPTY_PARAMETERSET_OPTION)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
60
skip
ref
function
mark = MARK_GEN.skip(reason=reason)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
62
xfail
ref
function
mark = MARK_GEN.xfail(reason=reason, run=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
65
getfslineno
ref
function
_, lineno = getfslineno(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
66
CollectError
ref
function
raise Collector.CollectError(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
74
ParameterSet
def
class
param extract_from _parse_parametrize_args _parse_parametrize_parameters _for_parametrize
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
85
param
def
function
def param( cls, *values: object, marks: Union["MarkDecorator", Collection[Union["MarkDecorator", "Mark"]]] = (), id: Optional[str] = None, ) -> "ParameterSet": if isinstance(marks, MarkDecorator): marks = (marks,) else: assert isinstance(ma...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
99
ascii_escaped
ref
function
id = ascii_escaped(id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
100
cls
ref
function
return cls(values, marks, id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
103
extract_from
def
function
def extract_from( cls, parameterset: Union["ParameterSet", Sequence[object], object], force_tuple: bool = _False, ) -> "ParameterSet": """Extract from an object or objects. :param parameterset: A legacy style parameterset that may or may not be a tuple, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
122
param
ref
function
return cls.param(parameterset)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
129
cls
ref
function
return cls(parameterset, marks=[], id=None) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
132
_parse_parametrize_args
def
function
def _parse_parametrize_args( argnames: Union[str, List[str], Tuple[str, ...]], argvalues: Iterable[Union["ParameterSet", Sequence[object], object]], *args, **kwargs, ) -> Tuple[Union[List[str], Tuple[str, ...]], bool]: if not isinstance(argnames, (tuple, list)): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
146
_parse_parametrize_parameters
def
function
def _parse_parametrize_parameters( argvalues: Iterable[Union["ParameterSet", Sequence[object], object]], force_tuple: bool, ) -> List["ParameterSet"]: return [ ParameterSet.extract_from(x, force_tuple=force_tuple) for x in argvalues ] @classmethod def _for_pa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
151
extract_from
ref
function
ParameterSet.extract_from(x, force_tuple=force_tuple) for x in argvalues
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
155
_for_parametrize
def
function
def _for_parametrize( cls, argnames: Union[str, List[str], Tuple[str, ...]], argvalues: Iterable[Union["ParameterSet", Sequence[object], object]], func, config: Config, nodeid: str, ) -> Tuple[Union[List[str], Tuple[str, ...]], List["ParameterSet"]]: argna...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
163
_parse_parametrize_args
ref
function
argnames, force_tuple = cls._parse_parametrize_args(argnames, argvalues)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
164
_parse_parametrize_parameters
ref
function
parameters = cls._parse_parametrize_parameters(argvalues, force_tuple)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
177
fail
ref
function
fail(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
190
get_empty_parameterset_mark
ref
function
mark = get_empty_parameterset_mark(config, argnames, func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
192
ParameterSet
ref
function
ParameterSet(values=(NOTSET,) * len(argnames), marks=[mark], id=None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
199
Mark
def
class
__init__ _has_param_ids combined_with
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
223
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
231
_has_param_ids
def
function
def _has_param_ids(self) -> bool: return "ids" in self.kwargs or len(self.args) >= 4 def combined_with(self, other: "Mark") -> "Mark": """Return a new Mark which is a combination of this Mark and another Mark. Combines by appending args and merging kwargs. :param Mark ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
234
combined_with
def
function
def combined_with(self, other: "Mark") -> "Mark": """Return a new Mark which is a combination of this Mark and another Mark. Combines by appending args and merging kwargs. :param Mark other: The mark to combine with. :rtype: Mark """ assert self.name == othe...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
248
_has_param_ids
ref
function
if other._has_param_ids():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
250
_has_param_ids
ref
function
elif self._has_param_ids():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
253
Mark
ref
function
return Mark(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
269
MarkDecorator
def
class
__init__ name args kwargs markname with_args __call__ __call__ __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
308
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
312
name
def
function
def name(self) -> str: """Alias for mark.name.""" return self.mark.name @property def args(self) -> Tuple[Any, ...]: """Alias for mark.args.""" return self.mark.args @property def kwargs(self) -> Mapping[str, Any]: """Alias for mark.kwargs.""" return...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
317
args
def
function
def args(self) -> Tuple[Any, ...]: """Alias for mark.args.""" return self.mark.args @property def kwargs(self) -> Mapping[str, Any]: """Alias for mark.kwargs.""" return self.mark.kwargs @property def markname(self) -> str: """:meta private:""" return...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
322
kwargs
def
function
def kwargs(self) -> Mapping[str, Any]: """Alias for mark.kwargs.""" return self.mark.kwargs @property def markname(self) -> str: """:meta private:""" return self.name # for backward-compat (2.4.1 had this attr) def with_args(self, *args: object, **kwargs: object) -> "M...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
327
markname
def
function
def markname(self) -> str: """:meta private:""" return self.name # for backward-compat (2.4.1 had this attr) def with_args(self, *args: object, **kwargs: object) -> "MarkDecorator": """Return a MarkDecorator with extra arguments added. Unlike calling the MarkDecorator, with_ar...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
331
with_args
def
function
def with_args(self, *args: object, **kwargs: object) -> "MarkDecorator": """Return a MarkDecorator with extra arguments added. Unlike calling the MarkDecorator, with_args() can be used even if the sole argument is a callable/class. """ mark = Mark(self.name, args, kwargs, _i...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
337
Mark
ref
function
mark = Mark(self.name, args, kwargs, _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
338
MarkDecorator
ref
function
return MarkDecorator(self.mark.combined_with(mark), _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
338
combined_with
ref
function
return MarkDecorator(self.mark.combined_with(mark), _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
356
istestfunc
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
357
store_mark
ref
function
store_mark(func, self.mark)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
359
with_args
ref
function
return self.with_args(*args, **kwargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
362
get_unpacked_marks
def
function
def get_unpacked_marks(obj: object) -> Iterable[Mark]: """Obtain the unpacked marks that are stored on an object.""" mark_list = getattr(obj, "pytestmark", []) if not isinstance(mark_list, list): mark_list = [mark_list] return normalize_mark_list(mark_list)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
367
normalize_mark_list
ref
function
return normalize_mark_list(mark_list)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
370
normalize_mark_list
def
function
def normalize_mark_list( mark_list: Iterable[Union[Mark, MarkDecorator]]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
387
store_mark
def
function
def store_mark(obj, mark: Mark) -> None: """Store a Mark on an object. This is used to implement the Mark declarations/decorators correctly. """ assert isinstance(mark, Mark), mark # Always reassign name to avoid updating pytestmark in a reference that # was only borrowed. obj.pytestmark = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
395
get_unpacked_marks
ref
function
obj.pytestmark = [*get_unpacked_marks(obj), mark]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
403
_SkipMarkDecorator
def
class
__call__ __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
412
_SkipifMarkDecorator
def
class
__call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
421
_XfailMarkDecorator
def
class
__call__ __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
438
_ParametrizeMarkDecorator
def
class
__call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
455
_UsefixturesMarkDecorator
def
class
__call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
459
_FilterwarningsMarkDecorator
def
class
__call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
465
MarkGenerator
def
class
__init__ __getattr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
490
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
504
getini
ref
function
for line in self._config.getini("markers"):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
515
fail
ref
function
fail(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
523
fail
ref
function
fail(f"Unknown '{name}' mark, did you mean 'parametrize'?")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
533
MarkDecorator
ref
function
return MarkDecorator(Mark(name, (), {}, _ispytest=True), _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
533
Mark
ref
function
return MarkDecorator(Mark(name, (), {}, _ispytest=True), _ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
536
MarkGenerator
ref
function
MARK_GEN = MarkGenerator(_ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/structures.py
src/_pytest/mark/structures.py
540
NodeKeywords
def
class
__init__ __getitem__ __setitem__ __contains__ update __delitem__ __iter__ __len__ __repr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/monkeypatch.py
src/_pytest/monkeypatch.py
28
monkeypatch
def
function
def monkeypatch() -> Generator["MonkeyPatch", None, None]: """A convenient fixture for monkey-patching. The fixture provides these methods to modify objects, dictionaries or os.environ:: monkeypatch.setattr(obj, name, value, raising=_True) monkeypatch.delattr(obj, name, raising=_True) ...