MCPcopy Create free account

hub / github.com/pytest-dev/pytest / functions

Functions4,602 in github.com/pytest-dev/pytest

↓ 1 callersFunctionwarns
( expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] = ..., *, match: Optional[Unio
src/_pytest/recwarn.py:86
↓ 1 callersFunctionwrap_function_to_error_out_if_called_directly
Wrap the given fixture function so we can raise an error about it being called directly, instead of used as an argument in a test function.
src/_pytest/fixtures.py:1158
↓ 1 callersFunctionwrite_fixture
(fixture_def: fixtures.FixtureDef[object])
src/_pytest/python.py:1490
↓ 1 callersFunctionwrite_item
(item: nodes.Item)
src/_pytest/python.py:1506
FunctionCache_makedir
Return a directory path object with the given name. Same as :func:`mkdir`, but returns a legacy py path instance.
src/_pytest/legacypath.py:320
FunctionConfig__getini_unknown_type
( self, name: str, type: str, value: Union[str, List[str]] )
src/_pytest/legacypath.py:384
FunctionConfig_inifile
The path to the :ref:`configfile <configfiles>`. Prefer to use :attr:`inipath`, which is a :class:`pathlib.Path`. :type: Optional[LEGACY_PAT
src/_pytest/legacypath.py:364
FunctionConfig_invocation_dir
The directory from which pytest was invoked. Prefer to use :attr:`invocation_params.dir <InvocationParams.dir>`, which is a :class:`pathlib.P
src/_pytest/legacypath.py:343
FunctionConfig_rootdir
The path to the :ref:`rootdir <rootdir>`. Prefer to use :attr:`rootpath`, which is a :class:`pathlib.Path`. :type: LEGACY_PATH
src/_pytest/legacypath.py:354
FunctionFixtureRequest_fspath
(deprecated) The file system path of the test module which collected this test.
src/_pytest/legacypath.py:328
FunctionLineMatcher_fixture
A reference to the :class: `LineMatcher`. This is instantiable with a list of lines (without their trailing newlines). This is useful for tes
src/_pytest/pytester.py:470
FunctionNode_fspath
(deprecated) returns a legacy_path copy of self.path
src/_pytest/legacypath.py:397
FunctionNode_fspath_set
(self: Node, value: LEGACY_PATH)
src/_pytest/legacypath.py:402
FunctionSession_stardir
The path from which pytest was invoked. Prefer to use ``startpath`` which is a :class:`pathlib.Path`. :type: LEGACY_PATH
src/_pytest/legacypath.py:374
FunctionTeeStdCapture
( out: bool = True, err: bool = True, in_: bool = True )
testing/test_capture.py:48
FunctionTerminalReporter_startdir
The directory from which pytest was invoked. Prefer to use ``startpath`` which is a :class:`pathlib.Path`. :type: LEGACY_PATH
src/_pytest/legacypath.py:333
FunctionXXX_test_expression_multiline
()
testing/code/test_source.py:634
Method__array__
(self)
testing/python/approx.py:719
Method__array__
(self)
testing/python/approx.py:726
Method__attrs_post_init__
(self)
src/_pytest/_code/code.py:1003
Method__bool__
(self)
src/_pytest/python_api.py:103
Method__bool__
(self)
testing/test_assertrewrite.py:693
Method__call__
(self, prefix: str, **kwargs: Any)
src/_pytest/_argcomplete.py:79
Method__call__
( self, parser: argparse.ArgumentParser, namespace: argparse.Namespace, values
src/_pytest/terminal.py:99
Method__call__
(self, parser, namespace, values, option_string=None)
src/_pytest/helpconfig.py:36
Method__call__
(self, function: FixtureFunction)
src/_pytest/fixtures.py:1197
Method__call__
(self, subname: str)
src/_pytest/mark/__init__.py:177
Method__call__
(self, name: str)
src/_pytest/mark/__init__.py:234
Method__call__
(self, arg: Markable)
src/_pytest/mark/structures.py:345
Method__call__
(self, arg: Markable)
src/_pytest/mark/structures.py:406
Method__call__
( # type: ignore[override] self, condition: Union[str, bool] = ..., *cond
src/_pytest/mark/structures.py:414
Method__call__
(self, arg: Markable)
src/_pytest/mark/structures.py:424
Method__call__
( # type: ignore[override] self, argnames: Union[str, List[str], Tuple[str, ...]],
src/_pytest/mark/structures.py:440
Method__call__
(self, *fixtures: str)
src/_pytest/mark/structures.py:457
Method__call__
(self, *filters: str)
src/_pytest/mark/structures.py:461
Method__call__
(self, prefix, **kwargs)
testing/test_argcomplete.py:46
Method__call__
( self, *args: Union[str, "os.PathLike[str]"], family: Optional[str] = "xunit1" )
testing/test_junitxml.py:40
Method__call__
(self)
testing/python/raises.py:24
Method__call__
(self)
testing/python/raises.py:165
Method__call__
(self)
testing/code/test_source.py:386
Method__call__
(self)
testing/code/test_source.py:393
Method__class__
(self)
testing/python/raises.py:267
Method__class__
(self)
testing/code/test_excinfo.py:562
Method__contains__
Return whether key was set.
src/_pytest/stash.py:106
Method__contains__
(self, key: object)
src/_pytest/mark/structures.py:563
Method__delitem__
Delete the value for key. Raises ``KeyError`` if the key wasn't set before.
src/_pytest/stash.py:99
Method__delitem__
(self, key: str)
src/_pytest/mark/structures.py:578
Method__delitem__
(self, item)
testing/test_assertion.py:684
Method__dir__
(self)
src/_pytest/config/compat.py:33
Method__dir__
(self)
src/pytest/collect.py:28
Method__enter__
(self)
src/_pytest/recwarn.py:202
Method__enter__
(self)
src/_pytest/unraisableexception.py:45
Method__enter__
(self)
src/_pytest/logging.py:308
Method__enter__
(self)
src/_pytest/threadexception.py:43
Method__enter__
(self)
src/_pytest/python_api.py:940
Method__eq__
(self, other: object)
src/_pytest/capture.py:506
Method__eq__
(self, actual)
src/_pytest/python_api.py:211
Method__eq__
(self, actual)
src/_pytest/python_api.py:289
Method__eq__
(self, actual)
src/_pytest/python_api.py:363
Method__eq__
Return whether the given value is equal to the expected value within the pre-specified tolerance.
src/_pytest/python_api.py:419
Method__eq__
(self, other)
src/_pytest/_code/code.py:72
Method__eq__
(self, other: object)
src/_pytest/_code/source.py:40
Method__eq__
(self, other)
testing/code/test_excinfo.py:1431
Method__exit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
src/_pytest/unraisableexception.py:50
Method__exit__
(self, type, value, traceback)
src/_pytest/logging.py:318
Method__exit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
src/_pytest/threadexception.py:48
Method__exit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
src/_pytest/python_api.py:944
Method__fspath__
(self)
testing/test_reports.py:239
Function__getattr__
(name: str)
src/_pytest/python.py:904
Function__getattr__
(name: str)
src/pytest/__init__.py:165
Method__getattr__
(self, key: str)
src/_pytest/pytester.py:240
Method__getattr__
(self, key: str)
src/_pytest/reports.py:74
Method__getattr__
(self, name: str)
src/_pytest/main.py:427
Method__getattr__
Generate a new :class:`MarkDecorator` with the given name.
src/_pytest/mark/structures.py:495
Method__getattr__
(self, key, _wraps=functools.wraps)
src/_pytest/config/compat.py:36
Method__getattr__
(self, name: str)
src/pytest/collect.py:31
Method__getattr__
(self, name)
testing/test_config.py:1084
Method__getattr__
(self, _)
testing/test_doctest.py:1518
Method__getattr__
(self, attribute_name)
testing/test_assertrewrite.py:264
Method__getattr__
(self, attr)
testing/test_compat.py:41
Method__getattr__
(self, attr)
testing/code/test_excinfo.py:1465
Method__getattribute__
(self, attr)
testing/io/test_saferepr.py:173
Method__getitem__
Get a recorded warning by index.
src/_pytest/recwarn.py:176
Method__getitem__
Get the value for key. Raises ``KeyError`` if the key wasn't set before.
src/_pytest/stash.py:75
Method__getitem__
(self, item: int)
src/_pytest/capture.py:490
Method__getitem__
(self, key: str)
src/_pytest/mark/expression.py:180
Method__getitem__
(self, key: str)
src/_pytest/mark/structures.py:549
Method__getitem__
(self, key: "SupportsIndex")
src/_pytest/_code/code.py:382
Method__getitem__
(self, key: int)
src/_pytest/_code/source.py:49
Method__getitem__
(self, item)
testing/test_assertion.py:675
Method__getitem__
(self, key)
testing/test_junitxml.py:114
Method__getitem__
(self, item)
testing/python/raises.py:246
Method__hash__
(self)
src/_pytest/capture.py:511
Method__hash__
(self)
src/_pytest/nodes.py:318
Method__init__
(self, *, _ispytest: bool = False)
src/_pytest/recwarn.py:164
Method__init__
(self)
src/_pytest/unraisableexception.py:36
Method__init__
(self, nodeid: Union[str, TestReport], xml: "LogXML")
src/_pytest/junitxml.py:90
Method__init__
( self, logfile, prefix: Optional[str], suite_name: str = "pytest", lo
src/_pytest/junitxml.py:462
Method__init__
(self, directories: bool = True)
src/_pytest/_argcomplete.py:76
Method__init__
(self, terminalwriter: TerminalWriter, *args, **kwargs)
src/_pytest/logging.py:64
← previousnext →1,001–1,100 of 4,602, ranked by callers