MCPcopy Create free account

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

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

Methodparse_hookspec_opts
(self, module_or_class, name: str)
src/_pytest/config/__init__.py:430
Functionparse_num
Parse number path suffixes, returns -1 on error.
src/_pytest/pathlib.py:179
Methodparseconfig
See :meth:`Pytester.parseconfig`.
src/_pytest/legacypath.py:185
Methodparseconfigure
See :meth:`Pytester.parseconfigure`.
src/_pytest/legacypath.py:189
Functionparser
()
testing/test_parseopt.py:16
Methodpassed
Whether the outcome is passed.
src/_pytest/reports.py:147
Methodpastebin
(self, request)
testing/test_pastebin.py:88
Methodpastebinlist
(self, monkeypatch, request)
testing/test_pastebin.py:12
Functionpatched_is_final
(self, decorators: List[ast.expr])
doc/en/conf.py:467
Methodpath
Temporary directory where files are created and pytest is executed.
src/_pytest/pytester.py:723
Methodpath
(self)
src/_pytest/fixtures.py:530
Methodpath
Return a path object pointing to source code, or an ``str`` in case of ``OSError`` / non-existing file.
src/_pytest/_code/code.py:87
Methodpath
Path to the source code.
src/_pytest/_code/code.py:232
Methodpath1
(self, tmp_path_factory: TempPathFactory)
testing/test_pathlib.py:88
Functionpdb_env
(request)
testing/test_debugging.py:24
Methodpdblist
(self, request)
testing/test_debugging.py:86
Methodplugins
(self)
src/_pytest/legacypath.py:72
Methodpopen
See :meth:`Pytester.popen`.
src/_pytest/legacypath.py:213
Methodpreserve
(name)
testing/test_pytester.py:356
Methodpreserve_module
(name)
src/_pytest/pytester.py:750
Methodprop
(self)
testing/test_compat.py:199
Functionpyfile_with_warnings
Create a test file which calls a function in a module which generates warnings.
testing/test_warnings.py:15
Functionpytest_addhooks
Called at plugin registration time to allow adding new hooks via a call to ``pluginmanager.add_hookspecs(module_or_class, prefix)``. :param p
src/_pytest/hookspec.py:56
Functionpytest_addoption
(parser: Parser)
src/_pytest/junitxml.py:379
Functionpytest_addoption
(parser: Parser)
src/_pytest/pastebin.py:18
Functionpytest_addoption
Add options to control log capturing.
src/_pytest/logging.py:209
Functionpytest_addoption
(parser: Parser)
src/_pytest/skipping.py:27
Functionpytest_addoption
(parser: Parser)
src/_pytest/pytester.py:86
Functionpytest_addoption
(parser: Parser)
src/_pytest/cacheprovider.py:436
Functionpytest_addoption
Register argparse-style options and ini-style config values, called once at the beginning of a test run. .. note:: This function sho
src/_pytest/hookspec.py:82
Functionpytest_addoption
(parser: Parser)
src/_pytest/doctest.py:66
Functionpytest_addoption
(parser: Parser)
src/_pytest/terminal.py:112
Functionpytest_addoption
(parser: Parser)
src/_pytest/runner.py:50
Functionpytest_addoption
(parser: Parser)
src/_pytest/pythonpath.py:8
Functionpytest_addoption
(parser: Parser)
src/_pytest/helpconfig.py:44
Functionpytest_addoption
(parser: Parser)
src/_pytest/setupplan.py:12
Functionpytest_addoption
(parser: Parser)
src/_pytest/python.py:90
Functionpytest_addoption
(parser: Parser)
src/_pytest/faulthandler.py:18
Functionpytest_addoption
(parser: Parser)
src/_pytest/fixtures.py:1379
Functionpytest_addoption
(parser: Parser)
src/_pytest/capture.py:37
Functionpytest_addoption
(parser: Parser)
src/_pytest/stepwise.py:18
Functionpytest_addoption
(parser: Parser)
src/_pytest/debugging.py:43
Functionpytest_addoption
(parser: Parser)
src/_pytest/setuponly.py:15
Functionpytest_addoption
(parser: Parser)
src/_pytest/main.py:51
Functionpytest_addoption
(parser: Parser)
src/_pytest/assertion/__init__.py:22
Functionpytest_addoption
(parser: Parser)
src/_pytest/mark/__init__.py:74
Methodpytest_addoption
(self, parser)
testing/acceptance_test.py:582
Functionpytest_assertion_pass
Called whenever an assertion passes. .. versionadded:: 5.0 Use this hook to do some processing after a passing assertion. The original a
src/_pytest/hookspec.py:643
Functionpytest_assertrepr_compare
Return explanation for comparisons in failing assert expressions. Return None for no custom explanation, otherwise return a list of strings.
src/_pytest/hookspec.py:629
Functionpytest_assertrepr_compare
( config: Config, op: str, left: Any, right: Any )
src/_pytest/assertion/__init__.py:178
Functionpytest_cmdline_main
(config: Config)
src/_pytest/cacheprovider.py:494
Functionpytest_cmdline_main
Called for performing the main command line action. The default implementation will invoke the configure hooks and runtest_mainloop. Stops at
src/_pytest/hookspec.py:177
Functionpytest_cmdline_main
(config: Config)
src/_pytest/helpconfig.py:146
Functionpytest_cmdline_main
(config: Config)
src/_pytest/setupplan.py:36
Functionpytest_cmdline_main
(config: Config)
src/_pytest/python.py:136
Functionpytest_cmdline_main
(config: Config)
src/_pytest/setuponly.py:94
Functionpytest_cmdline_main
(config: Config)
src/_pytest/main.py:314
Functionpytest_cmdline_main
(config: Config)
src/_pytest/mark/__init__.py:117
Functionpytest_cmdline_parse
Return an initialized config object, parsing the specified args. Stops at first non-None result, see :ref:`firstresult`. .. note:: T
src/_pytest/hookspec.py:144
Functionpytest_cmdline_parse
()
src/_pytest/helpconfig.py:100
Functionpytest_cmdline_preparse
(**Deprecated**) modify command line arguments before option parsing. This hook is considered deprecated and will be removed in a future pytest v
src/_pytest/hookspec.py:162
Functionpytest_collect_file
Create a Collector for the given path, or None if not relevant. The new node needs to have the specified ``parent`` as a parent. :param path
src/_pytest/hookspec.py:285
Functionpytest_collect_file
( file_path: Path, parent: Collector, )
src/_pytest/doctest.py:122
Functionpytest_collect_file
(file_path: Path, parent: nodes.Collector)
src/_pytest/python.py:198
Functionpytest_collect_file
(parent, file_path)
doc/en/example/nonpython/conftest.py:5
Functionpytest_collect_file
(file_path, parent)
testing/example_scripts/issue88_initial_file_multinodes/conftest.py:9
Functionpytest_collect_file
(file_path, parent)
testing/example_scripts/fixtures/custom_item/conftest.py:14
Functionpytest_collection
Perform the collection phase for the given session. Stops at first non-None result, see :ref:`firstresult`. The return value is not used, but
src/_pytest/hookspec.py:208
Functionpytest_collection
(session: Session)
src/_pytest/warnings.py:106
Functionpytest_collection
(session: "Session")
src/_pytest/main.py:331
Functionpytest_collection
(session: "Session")
src/_pytest/assertion/__init__.py:105
Methodpytest_collection
(self)
src/_pytest/terminal.py:625
Methodpytest_collection
(self)
src/_pytest/config/__init__.py:1218
Functionpytest_collection_finish
Called after collection has been performed and modified. :param pytest.Session session: The pytest session object.
src/_pytest/hookspec.py:256
Functionpytest_collection_modifyitems
Called after collection has been performed. May filter or re-order the items in-place. :param pytest.Session session: The pytest session obje
src/_pytest/hookspec.py:244
Functionpytest_collection_modifyitems
(items: List[nodes.Item], config: Config)
src/_pytest/main.py:404
Functionpytest_collection_modifyitems
(items: "List[Item]", config: Config)
src/_pytest/mark/__init__.py:263
Functionpytest_collection_modifyitems
Prefer faster tests. Use a hookwrapper to do this in the beginning, so e.g. --ff still works correctly.
testing/conftest.py:24
Methodpytest_collection_modifyitems
( self, items: List[nodes.Item] )
src/_pytest/cacheprovider.py:400
Methodpytest_collection_modifyitems
(self, items: List[nodes.Item])
src/_pytest/fixtures.py:1597
Methodpytest_collection_modifyitems
( self, config: Config, items: List[nodes.Item] )
src/_pytest/stepwise.py:68
Functionpytest_collectreport
Collector finished collecting.
src/_pytest/hookspec.py:313
Methodpytest_collectreport
(self, report: CollectReport)
src/_pytest/cacheprovider.py:318
Methodpytest_collectreport
(self, report: CollectReport)
src/_pytest/terminal.py:633
Functionpytest_collectstart
Collector starts collecting.
src/_pytest/hookspec.py:305
Functionpytest_configure
(config: Config)
src/_pytest/junitxml.py:426
Functionpytest_configure
(config: Config)
src/_pytest/pastebin.py:32
Functionpytest_configure
(config: Config)
src/_pytest/logging.py:524
Functionpytest_configure
(config: Config)
src/_pytest/skipping.py:46
Functionpytest_configure
(config: Config)
src/_pytest/pytester.py:111
Functionpytest_configure
(config: Config)
src/_pytest/cacheprovider.py:503
Functionpytest_configure
Allow plugins and conftest files to perform initial configuration. This hook is called for every plugin and initial conftest file after comma
src/_pytest/hookspec.py:121
Functionpytest_configure
(config: Config)
src/_pytest/terminal.py:227
Functionpytest_configure
(config: Config)
src/_pytest/warnings.py:20
Functionpytest_configure
(config: Config)
src/_pytest/python.py:151
Functionpytest_configure
Create a TempPathFactory and attach it to the config object. This is to comply with existing plugins which expect the handler to be available
src/_pytest/tmpdir.py:169
Functionpytest_configure
Installs the LegacyTmpdirPlugin if the ``tmpdir`` plugin is also installed.
src/_pytest/legacypath.py:439
Functionpytest_configure
(config: Config)
src/_pytest/faulthandler.py:26
Functionpytest_configure
(config: Config)
src/_pytest/stepwise.py:40
Functionpytest_configure
(config: Config)
src/_pytest/debugging.py:67
← previousnext →1,701–1,800 of 4,602, ranked by callers