MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_cmdline_main

Function pytest_cmdline_main

src/_pytest/hookspec.py:177–184  ·  view source on GitHub ↗

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: The pytest config object.

(config: "Config")

Source from the content-addressed store, hash-verified

175
176@hookspec(firstresult=True)
177def pytest_cmdline_main(config: "Config") -> Optional[Union["ExitCode", int]]:
178 """Called for performing the main command line action. The default
179 implementation will invoke the configure hooks and runtest_mainloop.
180
181 Stops at first non-None result, see :ref:`firstresult`.
182
183 :param pytest.Config config: The pytest config object.
184 """
185
186
187def pytest_load_initial_conftests(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected