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

Function _config_for_test

src/_pytest/pytester.py:504–509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

502
503@fixture
504def _config_for_test() -> Generator[Config]:
505 from _pytest.config import get_config
506
507 config = get_config()
508 yield config
509 config._ensure_unconfigure() # cleanup, e.g. capman closing tmpfiles.
510
511
512# Regex to match the session duration string in the summary: "74.34s".

Callers

nothing calls this directly

Calls 2

get_configFunction · 0.90
_ensure_unconfigureMethod · 0.80

Tested by

no test coverage detected