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

Function pytest_addoption

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getgroupMethod · 0.80
_addoptionMethod · 0.80

Tested by

no test coverage detected