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
parse_hookspec_opts
(self, module_or_class, name: str)
src/_pytest/config/__init__.py:430
Function
parse_num
Parse number path suffixes, returns -1 on error.
src/_pytest/pathlib.py:179
Method
parseconfig
See :meth:`Pytester.parseconfig`.
src/_pytest/legacypath.py:185
Method
parseconfigure
See :meth:`Pytester.parseconfigure`.
src/_pytest/legacypath.py:189
Function
parser
()
testing/test_parseopt.py:16
Method
passed
Whether the outcome is passed.
src/_pytest/reports.py:147
Method
pastebin
(self, request)
testing/test_pastebin.py:88
Method
pastebinlist
(self, monkeypatch, request)
testing/test_pastebin.py:12
Function
patched_is_final
(self, decorators: List[ast.expr])
doc/en/conf.py:467
Method
path
Temporary directory where files are created and pytest is executed.
src/_pytest/pytester.py:723
Method
path
(self)
src/_pytest/fixtures.py:530
Method
path
Return a path object pointing to source code, or an ``str`` in case of ``OSError`` / non-existing file.
src/_pytest/_code/code.py:87
Method
path
Path to the source code.
src/_pytest/_code/code.py:232
Method
path1
(self, tmp_path_factory: TempPathFactory)
testing/test_pathlib.py:88
Function
pdb_env
(request)
testing/test_debugging.py:24
Method
pdblist
(self, request)
testing/test_debugging.py:86
Method
plugins
(self)
src/_pytest/legacypath.py:72
Method
popen
See :meth:`Pytester.popen`.
src/_pytest/legacypath.py:213
Method
preserve
(name)
testing/test_pytester.py:356
Method
preserve_module
(name)
src/_pytest/pytester.py:750
Method
prop
(self)
testing/test_compat.py:199
Function
pyfile_with_warnings
Create a test file which calls a function in a module which generates warnings.
testing/test_warnings.py:15
Function
pytest_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
Function
pytest_addoption
(parser: Parser)
src/_pytest/junitxml.py:379
Function
pytest_addoption
(parser: Parser)
src/_pytest/pastebin.py:18
Function
pytest_addoption
Add options to control log capturing.
src/_pytest/logging.py:209
Function
pytest_addoption
(parser: Parser)
src/_pytest/skipping.py:27
Function
pytest_addoption
(parser: Parser)
src/_pytest/pytester.py:86
Function
pytest_addoption
(parser: Parser)
src/_pytest/cacheprovider.py:436
Function
pytest_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
Function
pytest_addoption
(parser: Parser)
src/_pytest/doctest.py:66
Function
pytest_addoption
(parser: Parser)
src/_pytest/terminal.py:112
Function
pytest_addoption
(parser: Parser)
src/_pytest/runner.py:50
Function
pytest_addoption
(parser: Parser)
src/_pytest/pythonpath.py:8
Function
pytest_addoption
(parser: Parser)
src/_pytest/helpconfig.py:44
Function
pytest_addoption
(parser: Parser)
src/_pytest/setupplan.py:12
Function
pytest_addoption
(parser: Parser)
src/_pytest/python.py:90
Function
pytest_addoption
(parser: Parser)
src/_pytest/faulthandler.py:18
Function
pytest_addoption
(parser: Parser)
src/_pytest/fixtures.py:1379
Function
pytest_addoption
(parser: Parser)
src/_pytest/capture.py:37
Function
pytest_addoption
(parser: Parser)
src/_pytest/stepwise.py:18
Function
pytest_addoption
(parser: Parser)
src/_pytest/debugging.py:43
Function
pytest_addoption
(parser: Parser)
src/_pytest/setuponly.py:15
Function
pytest_addoption
(parser: Parser)
src/_pytest/main.py:51
Function
pytest_addoption
(parser: Parser)
src/_pytest/assertion/__init__.py:22
Function
pytest_addoption
(parser: Parser)
src/_pytest/mark/__init__.py:74
Method
pytest_addoption
(self, parser)
testing/acceptance_test.py:582
Function
pytest_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
Function
pytest_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
Function
pytest_assertrepr_compare
( config: Config, op: str, left: Any, right: Any )
src/_pytest/assertion/__init__.py:178
Function
pytest_cmdline_main
(config: Config)
src/_pytest/cacheprovider.py:494
Function
pytest_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
Function
pytest_cmdline_main
(config: Config)
src/_pytest/helpconfig.py:146
Function
pytest_cmdline_main
(config: Config)
src/_pytest/setupplan.py:36
Function
pytest_cmdline_main
(config: Config)
src/_pytest/python.py:136
Function
pytest_cmdline_main
(config: Config)
src/_pytest/setuponly.py:94
Function
pytest_cmdline_main
(config: Config)
src/_pytest/main.py:314
Function
pytest_cmdline_main
(config: Config)
src/_pytest/mark/__init__.py:117
Function
pytest_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
Function
pytest_cmdline_parse
()
src/_pytest/helpconfig.py:100
Function
pytest_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
Function
pytest_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
Function
pytest_collect_file
( file_path: Path, parent: Collector, )
src/_pytest/doctest.py:122
Function
pytest_collect_file
(file_path: Path, parent: nodes.Collector)
src/_pytest/python.py:198
Function
pytest_collect_file
(parent, file_path)
doc/en/example/nonpython/conftest.py:5
Function
pytest_collect_file
(file_path, parent)
testing/example_scripts/issue88_initial_file_multinodes/conftest.py:9
Function
pytest_collect_file
(file_path, parent)
testing/example_scripts/fixtures/custom_item/conftest.py:14
Function
pytest_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
Function
pytest_collection
(session: Session)
src/_pytest/warnings.py:106
Function
pytest_collection
(session: "Session")
src/_pytest/main.py:331
Function
pytest_collection
(session: "Session")
src/_pytest/assertion/__init__.py:105
Method
pytest_collection
(self)
src/_pytest/terminal.py:625
Method
pytest_collection
(self)
src/_pytest/config/__init__.py:1218
Function
pytest_collection_finish
Called after collection has been performed and modified. :param pytest.Session session: The pytest session object.
src/_pytest/hookspec.py:256
Function
pytest_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
Function
pytest_collection_modifyitems
(items: List[nodes.Item], config: Config)
src/_pytest/main.py:404
Function
pytest_collection_modifyitems
(items: "List[Item]", config: Config)
src/_pytest/mark/__init__.py:263
Function
pytest_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
Method
pytest_collection_modifyitems
( self, items: List[nodes.Item] )
src/_pytest/cacheprovider.py:400
Method
pytest_collection_modifyitems
(self, items: List[nodes.Item])
src/_pytest/fixtures.py:1597
Method
pytest_collection_modifyitems
( self, config: Config, items: List[nodes.Item] )
src/_pytest/stepwise.py:68
Function
pytest_collectreport
Collector finished collecting.
src/_pytest/hookspec.py:313
Method
pytest_collectreport
(self, report: CollectReport)
src/_pytest/cacheprovider.py:318
Method
pytest_collectreport
(self, report: CollectReport)
src/_pytest/terminal.py:633
Function
pytest_collectstart
Collector starts collecting.
src/_pytest/hookspec.py:305
Function
pytest_configure
(config: Config)
src/_pytest/junitxml.py:426
Function
pytest_configure
(config: Config)
src/_pytest/pastebin.py:32
Function
pytest_configure
(config: Config)
src/_pytest/logging.py:524
Function
pytest_configure
(config: Config)
src/_pytest/skipping.py:46
Function
pytest_configure
(config: Config)
src/_pytest/pytester.py:111
Function
pytest_configure
(config: Config)
src/_pytest/cacheprovider.py:503
Function
pytest_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
Function
pytest_configure
(config: Config)
src/_pytest/terminal.py:227
Function
pytest_configure
(config: Config)
src/_pytest/warnings.py:20
Function
pytest_configure
(config: Config)
src/_pytest/python.py:151
Function
pytest_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
Function
pytest_configure
Installs the LegacyTmpdirPlugin if the ``tmpdir`` plugin is also installed.
src/_pytest/legacypath.py:439
Function
pytest_configure
(config: Config)
src/_pytest/faulthandler.py:26
Function
pytest_configure
(config: Config)
src/_pytest/stepwise.py:40
Function
pytest_configure
(config: Config)
src/_pytest/debugging.py:67
← previous
next →
1,701–1,800 of 4,602, ranked by callers