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

Function pytest_addoption

src/_pytest/skipping.py:29–47  ·  view source on GitHub ↗
(parser: Parser)

Source from the content-addressed store, hash-verified

27
28
29def pytest_addoption(parser: Parser) -> None:
30 group = parser.getgroup("general")
31 group.addoption(
32 "--runxfail",
33 action="store_true",
34 dest="runxfail",
35 default=False,
36 help="Report the results of xfail tests as if they were not marked",
37 )
38
39 parser.addini(
40 "strict_xfail",
41 "Default for the strict parameter of xfail "
42 "markers when not given explicitly (default: False) (alias: xfail_strict)",
43 type="bool",
44 # None => fallback to `strict`.
45 default=None,
46 aliases=["xfail_strict"],
47 )
48
49
50def pytest_configure(config: Config) -> None:

Callers

nothing calls this directly

Calls 3

getgroupMethod · 0.80
addiniMethod · 0.80
addoptionMethod · 0.45

Tested by

no test coverage detected