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

Function get_option_ini

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

Source from the content-addressed store, hash-verified

224
225
226def get_option_ini(config: Config, *names: str):
227 for name in names:
228 ret = config.getoption(name) # 'default' arg won't work as expected
229 if ret is None:
230 ret = config.getini(name)
231 if ret:
232 return ret
233
234
235def pytest_addoption(parser: Parser) -> None:

Callers 1

__init__Method · 0.85

Calls 2

getoptionMethod · 0.80
getiniMethod · 0.45

Tested by

no test coverage detected