Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ functions
Functions
4,602 in github.com/pytest-dev/pytest
⨍
Functions
4,602
◇
Types & classes
572
↳
Endpoints
16
Method
importasmod
(self, tmp_path: Path, _sys_snapshot)
testing/code/test_excinfo.py:439
Method
inipath
The path to the :ref:`configfile <configfiles>`. :type: Optional[pathlib.Path] .. versionadded:: 6.1
src/_pytest/config/__init__.py:973
Method
inline_genitems
See :meth:`Pytester.inline_genitems`.
src/_pytest/legacypath.py:167
Method
inline_run
See :meth:`Pytester.inline_run`.
src/_pytest/legacypath.py:171
Method
inline_runsource
See :meth:`Pytester.inline_runsource`.
src/_pytest/legacypath.py:163
Function
inner
()
testing/test_compat.py:64
Method
inner
(self, order)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:16
Method
inner
(self, order)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:25
Function
install_importhook
Try to install the rewrite hook, raise SystemError if it fails.
src/_pytest/assertion/__init__.py:89
Method
instance
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
Method
instance
Instance (can be None) on which test function was collected.
src/_pytest/fixtures.py:513
Method
interaction
(self, *args)
testing/test_debugging.py:72
Method
invocation_path
(self, pytester: Pytester)
testing/test_main.py:110
Method
isinitpath
(self, path: Union[str, "os.PathLike[str]"])
src/_pytest/nodes.py:639
Method
isopen
(line: str)
src/_pytest/pytester.py:134
Function
iterparentnodeids
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
Function
j
(arg1, arg2, arg3="hello")
testing/python/fixtures.py:35
Method
keywords
Keywords/markers dictionary for the underlying node.
src/_pytest/fixtures.py:537
Method
kwargs
Alias for mark.kwargs.
src/_pytest/mark/structures.py:323
Function
limited_recursion_depth
()
testing/code/test_excinfo.py:32
Function
linecomp
A :class: `LineComp` instance for checking that an input linearly contains a sequence of strings.
src/_pytest/pytester.py:463
Method
lineno
(self)
src/_pytest/_code/code.py:139
Method
lineno
(self)
src/_pytest/_code/code.py:206
Method
list
The list of recorded warnings.
src/_pytest/recwarn.py:172
Method
listnames
(self)
src/_pytest/nodes.py:406
Method
load
(self)
testing/acceptance_test.py:124
Method
load
(self)
testing/test_config.py:417
Method
load
(self)
testing/test_config.py:977
Method
locals
Locals of underlying frame.
src/_pytest/_code/code.py:237
Method
location
(self)
src/_pytest/reports.py:405
Method
location
(self)
src/_pytest/nodes.py:740
Method
log
(f, *k, **kw)
testing/code/test_excinfo.py:265
Function
logging_during_setup_and_teardown
(caplog)
testing/logging/test_fixture.py:155
Method
longreprtext
Read-only property that returns the full string representation of ``longrepr``. .. versionadded:: 3.0
src/_pytest/reports.py:103
Function
make_holder
()
testing/test_pytester.py:169
Method
make_hook_recorder
See :meth:`Pytester.make_hook_recorder`.
src/_pytest/legacypath.py:83
Method
makeconftest
See :meth:`Pytester.makeconftest`.
src/_pytest/legacypath.py:107
Method
makedoctest
(self, pytester, request)
testing/test_doctest.py:1098
Method
makefile
See :meth:`Pytester.makefile`.
src/_pytest/legacypath.py:95
Method
makeini
See :meth:`Pytester.makeini`.
src/_pytest/legacypath.py:111
Method
makeit
(doctest)
testing/test_doctest.py:1099
Method
makepyfile
See :meth:`Pytester.makepyfile`.
src/_pytest/legacypath.py:123
Method
makepyprojecttoml
See :meth:`Pytester.makepyprojecttoml`.
src/_pytest/legacypath.py:119
Method
maketxtfile
See :meth:`Pytester.maketxtfile`.
src/_pytest/legacypath.py:127
Method
many_files
(self, pytester: Pytester, contest_with_teardown_fixture)
testing/test_terminal.py:2145
Method
many_tests_files
(self, pytester: Pytester)
testing/test_terminal.py:1925
Method
markname
:meta private:
src/_pytest/mark/structures.py:328
Method
merge
(otherlist: Iterable[str])
src/_pytest/fixtures.py:1515
Method
messages
A list of format-interpolated log messages. Unlike 'records', which contains the format string and parameters for interpolation, log
src/_pytest/logging.py:419
Method
metadata
(self)
testing/test_config.py:432
Method
mkpydir
See :meth:`Pytester.mkpydir`.
src/_pytest/legacypath.py:139
Method
mkrel
(nodeid: str)
src/_pytest/terminal.py:851
Method
mktemp
Same as :meth:`TempPathFactory.mktemp`, but returns a ``_pytest.compat.LEGACY_PATH`` object.
src/_pytest/legacypath.py:284
Function
mock_get_pos
(*args)
testing/test_terminal.py:2260
Function
mock_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
Method
mocked
(url, data)
testing/test_pastebin.py:99
Function
mocked_doctest_runner
(monkeypatch)
testing/python/approx.py:18
Method
mocked_urlopen
Monkeypatch the actual urlopen calls done by the internal plugin function that connects to bpaste service.
testing/test_pastebin.py:129
Method
mocked_urlopen_fail
Monkeypatch the actual urlopen call to emulate a HTTP Error 400.
testing/test_pastebin.py:92
Method
mocked_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
Function
mod
(order)
doc/en/example/fixtures/test_fixtures_order_scope.py:20
Function
mode
(request)
testing/test_setuponly.py:9
Method
mode
(self)
src/_pytest/capture.py:163
Method
module
Python module object this node was collected from (can be None).
src/_pytest/python.py:270
Method
module
Python module object where the test function was collected.
src/_pytest/fixtures.py:523
Function
monkeypatch
A convenient fixture for monkey-patching. The fixture provides these methods to modify objects, dictionaries or os.environ:: monkeyp
src/_pytest/monkeypatch.py:29
Method
monkeypatch
(self)
src/_pytest/legacypath.py:80
Function
mp
()
testing/test_monkeypatch.py:16
Function
my_dists
()
testing/test_config.py:953
Method
my_dists
()
testing/acceptance_test.py:140
Method
my_dists
()
testing/test_config.py:435
Function
my_fixture
()
testing/example_scripts/acceptance/fixture_mock_integration.py:11
Method
my_reprcompare1
(op, left, right)
testing/test_assertrewrite.py:670
Method
my_reprcompare2
(op, left, right)
testing/test_assertrewrite.py:680
Method
myany
(x)
testing/test_assertrewrite.py:702
Method
mypdb
(*args)
testing/test_debugging.py:90
Function
mywriter
(tags, args)
src/_pytest/terminal.py:232
Method
name
(self)
src/_pytest/capture.py:157
Method
name
Alias for mark.name.
src/_pytest/mark/structures.py:313
Method
name
(self)
src/_pytest/_code/code.py:83
Method
name
co_name of underlying code.
src/_pytest/_code/code.py:318
Method
next_sibling
(self)
testing/test_junitxml.py:135
Method
no_header
(self)
src/_pytest/terminal.py:363
Method
no_summary
(self)
src/_pytest/terminal.py:367
Method
node_reporter_wrapper
(s, report)
testing/test_junitxml.py:260
Method
nodeid
A ::-separated string denoting its collection tree address.
src/_pytest/nodes.py:314
Function
nop
(*args, **kwargs)
src/_pytest/skipping.py:54
Function
option
(request)
testing/test_terminal.py:56
Method
option
(self)
testing/test_tmpdir.py:46
Function
order
()
doc/en/example/fixtures/test_fixtures_order_scope.py:5
Function
order
()
doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py:5
Function
order
()
doc/en/example/fixtures/test_fixtures_request_different_scope.py:5
Function
order
()
doc/en/example/fixtures/test_fixtures_order_dependencies.py:5
Function
order
()
doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py:5
Function
order
()
doc/en/example/fixtures/test_fixtures_order_autouse.py:5
Method
original
(self, x, y, z)
testing/python/integration.py:123
Function
other
(request)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_basic.py:10
Function
outer
(order, inner)
doc/en/example/fixtures/test_fixtures_request_different_scope.py:10
Function
pack
(order)
doc/en/example/fixtures/test_fixtures_order_scope.py:25
Function
param
Specify a parameter in `pytest.mark.parametrize`_ calls or :ref:`parametrized fixtures <fixture-parametrize-marks>`. .. code-block:: python
src/_pytest/mark/__init__.py:47
← previous
next →
1,601–1,700 of 4,602, ranked by callers