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

Function pytest_addoption

src/_pytest/setuponly.py:15–28  ·  view source on GitHub ↗
(parser: Parser)

Source from the content-addressed store, hash-verified

13
14
15def pytest_addoption(parser: Parser) -> None:
16 group = parser.getgroup("debugconfig")
17 group.addoption(
18 "--setuponly",
19 "--setup-only",
20 action="store_true",
21 help="only setup fixtures, do not execute tests.",
22 )
23 group.addoption(
24 "--setupshow",
25 "--setup-show",
26 action="store_true",
27 help="show setup of fixtures while executing tests.",
28 )
29
30
31@pytest.hookimpl(hookwrapper=True)

Callers

nothing calls this directly

Calls 2

getgroupMethod · 0.80
addoptionMethod · 0.45

Tested by

no test coverage detected