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

Function test_pytest_addopts_before_pytester

testing/test_pytester.py:610–613  ·  view source on GitHub ↗
(request, monkeypatch: MonkeyPatch)

Source from the content-addressed store, hash-verified

608
609
610def test_pytest_addopts_before_pytester(request, monkeypatch: MonkeyPatch) -> None:
611 monkeypatch.setenv("PYTEST_ADDOPTS", "--orig-unused")
612 _: Pytester = request.getfixturevalue("pytester")
613 assert "PYTEST_ADDOPTS" not in os.environ
614
615
616def test_run_stdin(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

setenvMethod · 0.80
getfixturevalueMethod · 0.80

Tested by

no test coverage detected