fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/fixtures.py
src/_pytest/fixtures.py
1,664
getfixturedefs
def
function
def getfixturedefs( self, argname: str, nodeid: str ) -> Optional[Sequence[FixtureDef[Any]]]: """Get a list of fixtures which are applicable to the given node id. :param str argname: Name of the fixture to search for. :param str nodeid: Full node id of the requesting test. ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/fixtures.py
src/_pytest/fixtures.py
1,677
_matchfactories
ref
function
return tuple(self._matchfactories(fixturedefs, nodeid))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/fixtures.py
src/_pytest/fixtures.py
1,679
_matchfactories
def
function
def _matchfactories( self, fixturedefs: Iterable[FixtureDef[Any]], nodeid: str ) -> Iterator[FixtureDef[Any]]: parentnodeids = set(nodes.iterparentnodeids(nodeid)) for fixturedef in fixturedefs: if fixturedef.baseid in parentnodeids: yield fixturedef
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/fixtures.py
src/_pytest/fixtures.py
1,682
iterparentnodeids
ref
function
parentnodeids = set(nodes.iterparentnodeids(nodeid))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/freeze_support.py
src/_pytest/freeze_support.py
8
freeze_includes
def
function
def freeze_includes() -> List[str]: """Return a list of module names used by pytest that should be included by cx_freeze.""" import _pytest result = list(_iter_all_modules(_pytest)) return result
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/freeze_support.py
src/_pytest/freeze_support.py
13
_iter_all_modules
ref
function
result = list(_iter_all_modules(_pytest))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/freeze_support.py
src/_pytest/freeze_support.py
17
_iter_all_modules
def
function
def _iter_all_modules( package: Union[str, types.ModuleType], prefix: str = "",
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/freeze_support.py
src/_pytest/freeze_support.py
40
_iter_all_modules
ref
function
for m in _iter_all_modules(os.path.join(path, name), prefix=name + "."):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
15
HelpAction
def
class
__init__ __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
43
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("debugconfig") group.addoption( "--version", "-V", action="count", default=0, dest="version", help="display pytest version and information about plugins. " "When given twice, also displa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
44
getgroup
ref
function
group = parser.getgroup("debugconfig")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
45
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
54
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
61
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
71
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
78
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
89
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
98
hookimpl
ref
function
@pytest.hookimpl(hookwrapper=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
99
pytest_cmdline_parse
def
function
def pytest_cmdline_parse(): outcome = yield config: Config = outcome.get_result() if config.option.debug: # --debug | --debug <file.log> was provided. path = config.option.debug debugfile = open(path, "w") debugfile.write( "versions pytest-%s, " "pyth...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
101
get_result
ref
function
config: Config = outcome.get_result()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
117
setwriter
ref
function
config.trace.root.setwriter(debugfile.write)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
118
enable_tracing
ref
function
undo_tracing = config.pluginmanager.enable_tracing()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
121
unset_tracing
def
function
def unset_tracing() -> None: debugfile.close() sys.stderr.write("wrote pytest debug information to %s\n" % debugfile.name) config.trace.root.setwriter(None) undo_tracing() config.add_cleanup(unset_tracing)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
124
setwriter
ref
function
config.trace.root.setwriter(None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
125
undo_tracing
ref
function
undo_tracing()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
127
add_cleanup
ref
function
config.add_cleanup(unset_tracing)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
130
showversion
def
function
def showversion(config: Config) -> None: if config.option.version > 1: sys.stdout.write( "This is pytest version {}, imported from {}\n".format( pytest.__version__, pytest.__file__ ) ) plugininfo = getpluginversioninfo(config) if plugininfo: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
137
getpluginversioninfo
ref
function
plugininfo = getpluginversioninfo(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
145
pytest_cmdline_main
def
function
def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]: if config.option.version > 0: showversion(config) return 0 elif config.option.help: config._do_configure() showhelp(config) config._ensure_unconfigure() return 0 return None
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
147
showversion
ref
function
showversion(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
150
_do_configure
ref
function
config._do_configure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
151
showhelp
ref
function
showhelp(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
152
_ensure_unconfigure
ref
function
config._ensure_unconfigure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
157
showhelp
def
function
def showhelp(config: Config) -> None: import textwrap reporter = config.pluginmanager.get_plugin("terminalreporter") tw = reporter._tw tw.write(config._parser.optparser.format_help()) tw.line() tw.line( "[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg file found:" ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
160
get_plugin
ref
function
reporter = config.pluginmanager.get_plugin("terminalreporter")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
162
format_help
ref
function
tw.write(config._parser.optparser.format_help())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
163
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
164
line
ref
function
tw.line(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
167
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
183
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
193
line
ref
function
tw.line(line)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
200
line
ref
function
tw.line(wrapped[0])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
202
line
ref
function
tw.line(indent + line)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
204
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
205
line
ref
function
tw.line("environment variables:")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
213
line
ref
function
tw.line(f" {name:<24} {help}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
214
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
215
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
217
line
ref
function
tw.line("to see available markers type: pytest --markers")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
218
line
ref
function
tw.line("to see available fixtures type: pytest --fixtures")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
219
line
ref
function
tw.line(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
226
line
ref
function
tw.line("warning : " + warningreport.message, red=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
233
getpluginversioninfo
def
function
def getpluginversioninfo(config: Config) -> List[str]: lines = [] plugininfo = config.pluginmanager.list_plugin_distinfo() if plugininfo: lines.append("setuptools registered plugins:") for plugin, dist in plugininfo: loc = getattr(plugin, "__file__", repr(plugin)) con...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
235
list_plugin_distinfo
ref
function
plugininfo = config.pluginmanager.list_plugin_distinfo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
245
pytest_report_header
def
function
def pytest_report_header(config: Config) -> List[str]: lines = [] if config.option.debug or config.option.traceconfig: lines.append(f"using: pytest-{pytest.__version__}") verinfo = getpluginversioninfo(config) if verinfo: lines.extend(verinfo) if config.option.traceconf...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
250
getpluginversioninfo
ref
function
verinfo = getpluginversioninfo(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/helpconfig.py
src/_pytest/helpconfig.py
256
list_name_plugin
ref
function
items = config.pluginmanager.list_name_plugin()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
47
HookspecMarker
ref
function
hookspec = HookspecMarker("pytest")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
54
hookspec
ref
function
@hookspec(historic=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
55
pytest_addhooks
def
function
def pytest_addhooks(pluginmanager: "PytestPluginManager") -> None: """Called at plugin registration time to allow adding new hooks via a call to ``pluginmanager.add_hookspecs(module_or_class, prefix)``. :param pytest.PytestPluginManager pluginmanager: The pytest plugin manager. .. note:: This ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
66
hookspec
ref
function
@hookspec(historic=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
67
pytest_plugin_registered
def
function
def pytest_plugin_registered( plugin: "_PluggyPlugin", manager: "PytestPluginManager"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
80
hookspec
ref
function
@hookspec(historic=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
81
pytest_addoption
def
function
def pytest_addoption(parser: "Parser", pluginmanager: "PytestPluginManager") -> None: """Register argparse-style options and ini-style config values, called once at the beginning of a test run. .. note:: This function should be implemented only in plugins or ``conftest.py`` files situated ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
119
hookspec
ref
function
@hookspec(historic=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
120
pytest_configure
def
function
def pytest_configure(config: "Config") -> None: """Allow plugins and conftest files to perform initial configuration. This hook is called for every plugin and initial conftest file after command line options have been parsed. After that, the hook is called for other conftest files as they are impo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
142
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
143
pytest_cmdline_parse
def
function
def pytest_cmdline_parse( pluginmanager: "PytestPluginManager", args: List[str]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
160
hookspec
ref
function
@hookspec(warn_on_impl=WARNING_CMDLINE_PREPARSE_HOOK)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
161
pytest_cmdline_preparse
def
function
def pytest_cmdline_preparse(config: "Config", args: List[str]) -> None: """(**Deprecated**) modify command line arguments before option parsing. This hook is considered deprecated and will be removed in a future pytest version. Consider using :func:`pytest_load_initial_conftests` instead. .. note:: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
175
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
176
pytest_cmdline_main
def
function
def pytest_cmdline_main(config: "Config") -> Optional[Union["ExitCode", int]]: """Called for performing the main command line action. The default implementation will invoke the configure hooks and runtest_mainloop. Stops at first non-None result, see :ref:`firstresult`. :param pytest.Config config: Th...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
186
pytest_load_initial_conftests
def
function
def pytest_load_initial_conftests( early_config: "Config", parser: "Parser", args: List[str]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
206
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
207
pytest_collection
def
function
def pytest_collection(session: "Session") -> Optional[object]: """Perform the collection phase for the given session. Stops at first non-None result, see :ref:`firstresult`. The return value is not used, but only stops further processing. The default collection phase is this (see individual hooks for ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
243
pytest_collection_modifyitems
def
function
def pytest_collection_modifyitems( session: "Session", config: "Config", items: List["Item"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
255
pytest_collection_finish
def
function
def pytest_collection_finish(session: "Session") -> None: """Called after collection has been performed and modified. :param pytest.Session session: The pytest session object. """
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
262
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
263
pytest_ignore_collect
def
function
def pytest_ignore_collect( fspath: Path, path: "LEGACY_PATH", config: "Config"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
284
pytest_collect_file
def
function
def pytest_collect_file( fspath: Path, path: "LEGACY_PATH", parent: "Collector"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
304
pytest_collectstart
def
function
def pytest_collectstart(collector: "Collector") -> None: """Collector starts collecting."""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
308
pytest_itemcollected
def
function
def pytest_itemcollected(item: "Item") -> None: """We just collected a test item."""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
312
pytest_collectreport
def
function
def pytest_collectreport(report: "CollectReport") -> None: """Collector finished collecting."""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
316
pytest_deselected
def
function
def pytest_deselected(items: Sequence["Item"]) -> None: """Called for deselected test items, e.g. by keyword. May be called multiple times. """
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
323
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
324
pytest_make_collect_report
def
function
def pytest_make_collect_report(collector: "Collector") -> "Optional[CollectReport]": """Perform :func:`collector.collect() <pytest.Collector.collect>` and return a :class:`~pytest.CollectReport`. Stops at first non-None result, see :ref:`firstresult`. """
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
337
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
338
pytest_pycollect_makemodule
def
function
def pytest_pycollect_makemodule( fspath: Path, path: "LEGACY_PATH", parent
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
360
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
361
pytest_pycollect_makeitem
def
function
def pytest_pycollect_makeitem( collector: "PyCollector", name: str, obj: object
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
370
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
371
pytest_pyfunc_call
def
function
def pytest_pyfunc_call(pyfuncitem: "Function") -> Optional[object]: """Call underlying test function. Stops at first non-None result, see :ref:`firstresult`. """
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
378
pytest_generate_tests
def
function
def pytest_generate_tests(metafunc: "Metafunc") -> None: """Generate (multiple) parametrized calls to a test function."""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
382
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
383
pytest_make_parametrize_id
def
function
def pytest_make_parametrize_id( config: "Config", val: object, argname: str
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
405
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
406
pytest_runtestloop
def
function
def pytest_runtestloop(session: "Session") -> Optional[object]: """Perform the main runtest loop (after collection finished). The default hook implementation performs the runtest protocol for all items collected in the session (``session.items``), unless the collection failed or the ``collectonly`` pyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
426
hookspec
ref
function
@hookspec(firstresult=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
427
pytest_runtest_protocol
def
function
def pytest_runtest_protocol( item: "Item", nextitem: "Optional[Item]"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/hookspec.py
src/_pytest/hookspec.py
464
pytest_runtest_logstart
def
function
def pytest_runtest_logstart( nodeid: str, location: Tuple[str, Optional[int], str]