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

Function get_optionflags

src/_pytest/doctest.py:401–407  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

399
400
401def get_optionflags(config: Config) -> int:
402 optionflags_str = config.getini("doctest_optionflags")
403 flag_lookup_table = _get_flag_lookup()
404 flag_acc = 0
405 for flag in optionflags_str:
406 flag_acc |= flag_lookup_table[flag]
407 return flag_acc
408
409
410def _get_continue_on_failure(config: Config) -> bool:

Callers 2

collectMethod · 0.85
collectMethod · 0.85

Calls 2

_get_flag_lookupFunction · 0.85
getiniMethod · 0.45

Tested by

no test coverage detected