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

Function test_PYTEST_DEBUG

testing/test_helpconfig.py:118–124  ·  view source on GitHub ↗
(pytester: Pytester, monkeypatch)

Source from the content-addressed store, hash-verified

116
117
118def test_PYTEST_DEBUG(pytester: Pytester, monkeypatch) -> None:
119 monkeypatch.setenv("PYTEST_DEBUG", "1")
120 result = pytester.runpytest_subprocess()
121 assert result.ret == ExitCode.NO_TESTS_COLLECTED
122 result.stderr.fnmatch_lines(
123 ["*pytest_plugin_registered*", "*manager*PluginManager*"]
124 )

Callers

nothing calls this directly

Calls 3

setenvMethod · 0.80
fnmatch_linesMethod · 0.80
runpytest_subprocessMethod · 0.45

Tested by

no test coverage detected