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

Function get_option_ini

src/_pytest/logging.py:200–206  ·  view source on GitHub ↗
(config: Config, *names: str)

Source from the content-addressed store, hash-verified

198
199
200def get_option_ini(config: Config, *names: str):
201 for name in names:
202 ret = config.getoption(name) # 'default' arg won't work as expected
203 if ret is None:
204 ret = config.getini(name)
205 if ret:
206 return ret
207
208
209def pytest_addoption(parser: Parser) -> None:

Callers 1

__init__Method · 0.85

Calls 2

getoptionMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected