Function
get_option_ini
(config: Config, *names: str)
Source from the content-addressed store, hash-verified
| 224 | |
| 225 | |
| 226 | def 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 | |
| 235 | def pytest_addoption(parser: Parser) -> None: |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…