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

Method _addoption

src/_pytest/config/argparsing.py:360–363  ·  view source on GitHub ↗

Like addoption(), but also allows registering short lower case options (e.g. -x), which are reserved for pytest core.

(self, *opts: str, **attrs: Any)

Source from the content-addressed store, hash-verified

358 self._addoption_inner(opts, attrs, allow_reserved=False)
359
360 def _addoption(self, *opts: str, **attrs: Any) -> None:
361 """Like addoption(), but also allows registering short lower case options (e.g. -x),
362 which are reserved for pytest core."""
363 self._addoption_inner(opts, attrs, allow_reserved=True)
364
365 def _addoption_inner(
366 self, opts: tuple[str, ...], attrs: dict[str, Any], allow_reserved: bool

Callers 8

pytest_addoptionFunction · 0.80
pytest_addoptionFunction · 0.80
pytest_addoptionFunction · 0.80
pytest_addoptionFunction · 0.80
pytest_addoptionFunction · 0.80
test_drop_short_help1Method · 0.80

Calls 1

_addoption_innerMethod · 0.95

Tested by 3

test_drop_short_help1Method · 0.64