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

Function pytest_addoption

src/_pytest/pastebin.py:22–32  ·  view source on GitHub ↗
(parser: Parser)

Source from the content-addressed store, hash-verified

20
21
22def pytest_addoption(parser: Parser) -> None:
23 group = parser.getgroup("terminal reporting")
24 group.addoption(
25 "--pastebin",
26 metavar="mode",
27 action="store",
28 dest="pastebin",
29 default=None,
30 choices=["failed", "all"],
31 help="Send failed|all info to bpaste.net pastebin service",
32 )
33
34
35@pytest.hookimpl(trylast=True)

Callers

nothing calls this directly

Calls 2

getgroupMethod · 0.80
addoptionMethod · 0.45

Tested by

no test coverage detected