MCPcopy
hub / github.com/pytest-dev/pytest / console_main

Function console_main

src/_pytest/config/__init__.py:264–276  ·  view source on GitHub ↗

The CLI entry point of pytest. .. deprecated:: 9.1 This function is slated for removal in pytest 10. It is not meant for programmable use; use :func:`pytest.main` instead.

()

Source from the content-addressed store, hash-verified

262
263
264def console_main() -> int:
265 """The CLI entry point of pytest.
266
267 .. deprecated:: 9.1
268 This function is slated for removal in pytest 10.
269 It is not meant for programmable use; use :func:`pytest.main` instead.
270 """
271 import warnings
272
273 from _pytest.deprecated import CONSOLE_MAIN
274
275 warnings.warn(CONSOLE_MAIN, stacklevel=2)
276 return _console_main()
277
278
279class cmdline: # compatibility namespace

Callers 1

Calls 2

_console_mainFunction · 0.85
warnMethod · 0.45

Tested by 1