MCPcopy Create free account
hub / github.com/psf/black / pytest_addoption

Function pytest_addoption

tests/optional.py:45–54  ·  view source on GitHub ↗
(parser: "Parser")

Source from the content-addressed store, hash-verified

43
44
45def pytest_addoption(parser: "Parser") -> None:
46 group = parser.getgroup("collect")
47 group.addoption(
48 "--run-optional",
49 action="append",
50 dest="run_optional",
51 default=None,
52 help="Optional test markers to run; comma-separated",
53 )
54 parser.addini("optional-tests", "List of optional tests markers", "linelist")
55
56
57def pytest_configure(config: "Config") -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected