MCPcopy Create free account

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

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

Methodimportasmod
(self, tmp_path: Path, _sys_snapshot)
testing/code/test_excinfo.py:439
Methodinipath
The path to the :ref:`configfile <configfiles>`. :type: Optional[pathlib.Path] .. versionadded:: 6.1
src/_pytest/config/__init__.py:973
Methodinline_genitems
See :meth:`Pytester.inline_genitems`.
src/_pytest/legacypath.py:167
Methodinline_run
See :meth:`Pytester.inline_run`.
src/_pytest/legacypath.py:171
Methodinline_runsource
See :meth:`Pytester.inline_runsource`.
src/_pytest/legacypath.py:163
Functioninner
()
testing/test_compat.py:64
Methodinner
(self, order)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:16
Methodinner
(self, order)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:25
Functioninstall_importhook
Try to install the rewrite hook, raise SystemError if it fails.
src/_pytest/assertion/__init__.py:89
Methodinstance
Python instance object the function is bound to. Returns None if not a test method, e.g. for a standalone test function, a staticmeth
src/_pytest/python.py:282
Methodinstance
Instance (can be None) on which test function was collected.
src/_pytest/fixtures.py:513
Methodinteraction
(self, *args)
testing/test_debugging.py:72
Methodinvocation_path
(self, pytester: Pytester)
testing/test_main.py:110
Methodisinitpath
(self, path: Union[str, "os.PathLike[str]"])
src/_pytest/nodes.py:639
Methodisopen
(line: str)
src/_pytest/pytester.py:134
Functioniterparentnodeids
Return the parent node IDs of a given node ID, inclusive. For the node ID "testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr
src/_pytest/nodes.py:51
Functionj
(arg1, arg2, arg3="hello")
testing/python/fixtures.py:35
Methodkeywords
Keywords/markers dictionary for the underlying node.
src/_pytest/fixtures.py:537
Methodkwargs
Alias for mark.kwargs.
src/_pytest/mark/structures.py:323
Functionlimited_recursion_depth
()
testing/code/test_excinfo.py:32
Functionlinecomp
A :class: `LineComp` instance for checking that an input linearly contains a sequence of strings.
src/_pytest/pytester.py:463
Methodlineno
(self)
src/_pytest/_code/code.py:139
Methodlineno
(self)
src/_pytest/_code/code.py:206
Methodlist
The list of recorded warnings.
src/_pytest/recwarn.py:172
Methodlistnames
(self)
src/_pytest/nodes.py:406
Methodload
(self)
testing/acceptance_test.py:124
Methodload
(self)
testing/test_config.py:417
Methodload
(self)
testing/test_config.py:977
Methodlocals
Locals of underlying frame.
src/_pytest/_code/code.py:237
Methodlocation
(self)
src/_pytest/reports.py:405
Methodlocation
(self)
src/_pytest/nodes.py:740
Methodlog
(f, *k, **kw)
testing/code/test_excinfo.py:265
Functionlogging_during_setup_and_teardown
(caplog)
testing/logging/test_fixture.py:155
Methodlongreprtext
Read-only property that returns the full string representation of ``longrepr``. .. versionadded:: 3.0
src/_pytest/reports.py:103
Functionmake_holder
()
testing/test_pytester.py:169
Methodmake_hook_recorder
See :meth:`Pytester.make_hook_recorder`.
src/_pytest/legacypath.py:83
Methodmakeconftest
See :meth:`Pytester.makeconftest`.
src/_pytest/legacypath.py:107
Methodmakedoctest
(self, pytester, request)
testing/test_doctest.py:1098
Methodmakefile
See :meth:`Pytester.makefile`.
src/_pytest/legacypath.py:95
Methodmakeini
See :meth:`Pytester.makeini`.
src/_pytest/legacypath.py:111
Methodmakeit
(doctest)
testing/test_doctest.py:1099
Methodmakepyfile
See :meth:`Pytester.makepyfile`.
src/_pytest/legacypath.py:123
Methodmakepyprojecttoml
See :meth:`Pytester.makepyprojecttoml`.
src/_pytest/legacypath.py:119
Methodmaketxtfile
See :meth:`Pytester.maketxtfile`.
src/_pytest/legacypath.py:127
Methodmany_files
(self, pytester: Pytester, contest_with_teardown_fixture)
testing/test_terminal.py:2145
Methodmany_tests_files
(self, pytester: Pytester)
testing/test_terminal.py:1925
Methodmarkname
:meta private:
src/_pytest/mark/structures.py:328
Methodmerge
(otherlist: Iterable[str])
src/_pytest/fixtures.py:1515
Methodmessages
A list of format-interpolated log messages. Unlike 'records', which contains the format string and parameters for interpolation, log
src/_pytest/logging.py:419
Methodmetadata
(self)
testing/test_config.py:432
Methodmkpydir
See :meth:`Pytester.mkpydir`.
src/_pytest/legacypath.py:139
Methodmkrel
(nodeid: str)
src/_pytest/terminal.py:851
Methodmktemp
Same as :meth:`TempPathFactory.mktemp`, but returns a ``_pytest.compat.LEGACY_PATH`` object.
src/_pytest/legacypath.py:284
Functionmock_get_pos
(*args)
testing/test_terminal.py:2260
Functionmock_timing
Mocks _pytest.timing with a known object that can be used to control timing in tests deterministically. pytest itself should always use funct
testing/conftest.py:182
Methodmocked
(url, data)
testing/test_pastebin.py:99
Functionmocked_doctest_runner
(monkeypatch)
testing/python/approx.py:18
Methodmocked_urlopen
Monkeypatch the actual urlopen calls done by the internal plugin function that connects to bpaste service.
testing/test_pastebin.py:129
Methodmocked_urlopen_fail
Monkeypatch the actual urlopen call to emulate a HTTP Error 400.
testing/test_pastebin.py:92
Methodmocked_urlopen_invalid
Monkeypatch the actual urlopen calls done by the internal plugin function that connects to bpaste service, but return a url in an unex
testing/test_pastebin.py:107
Functionmod
(order)
doc/en/example/fixtures/test_fixtures_order_scope.py:20
Functionmode
(request)
testing/test_setuponly.py:9
Methodmode
(self)
src/_pytest/capture.py:163
Methodmodule
Python module object this node was collected from (can be None).
src/_pytest/python.py:270
Methodmodule
Python module object where the test function was collected.
src/_pytest/fixtures.py:523
Functionmonkeypatch
A convenient fixture for monkey-patching. The fixture provides these methods to modify objects, dictionaries or os.environ:: monkeyp
src/_pytest/monkeypatch.py:29
Methodmonkeypatch
(self)
src/_pytest/legacypath.py:80
Functionmp
()
testing/test_monkeypatch.py:16
Functionmy_dists
()
testing/test_config.py:953
Methodmy_dists
()
testing/acceptance_test.py:140
Methodmy_dists
()
testing/test_config.py:435
Functionmy_fixture
()
testing/example_scripts/acceptance/fixture_mock_integration.py:11
Methodmy_reprcompare1
(op, left, right)
testing/test_assertrewrite.py:670
Methodmy_reprcompare2
(op, left, right)
testing/test_assertrewrite.py:680
Methodmyany
(x)
testing/test_assertrewrite.py:702
Methodmypdb
(*args)
testing/test_debugging.py:90
Functionmywriter
(tags, args)
src/_pytest/terminal.py:232
Methodname
(self)
src/_pytest/capture.py:157
Methodname
Alias for mark.name.
src/_pytest/mark/structures.py:313
Methodname
(self)
src/_pytest/_code/code.py:83
Methodname
co_name of underlying code.
src/_pytest/_code/code.py:318
Methodnext_sibling
(self)
testing/test_junitxml.py:135
Methodno_header
(self)
src/_pytest/terminal.py:363
Methodno_summary
(self)
src/_pytest/terminal.py:367
Methodnode_reporter_wrapper
(s, report)
testing/test_junitxml.py:260
Methodnodeid
A ::-separated string denoting its collection tree address.
src/_pytest/nodes.py:314
Functionnop
(*args, **kwargs)
src/_pytest/skipping.py:54
Functionoption
(request)
testing/test_terminal.py:56
Methodoption
(self)
testing/test_tmpdir.py:46
Functionorder
()
doc/en/example/fixtures/test_fixtures_order_scope.py:5
Functionorder
()
doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py:5
Functionorder
()
doc/en/example/fixtures/test_fixtures_request_different_scope.py:5
Functionorder
()
doc/en/example/fixtures/test_fixtures_order_dependencies.py:5
Functionorder
()
doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py:5
Functionorder
()
doc/en/example/fixtures/test_fixtures_order_autouse.py:5
Methodoriginal
(self, x, y, z)
testing/python/integration.py:123
Functionother
(request)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_basic.py:10
Functionouter
(order, inner)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:10
Functionpack
(order)
doc/en/example/fixtures/test_fixtures_order_scope.py:25
Functionparam
Specify a parameter in `pytest.mark.parametrize`_ calls or :ref:`parametrized fixtures <fixture-parametrize-marks>`. .. code-block:: python
src/_pytest/mark/__init__.py:47
← previousnext →1,601–1,700 of 4,602, ranked by callers