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

Function test_version_less_verbose

testing/test_helpconfig.py:15–19  ·  view source on GitHub ↗
(pytester: Pytester, pytestconfig, monkeypatch)

Source from the content-addressed store, hash-verified

13
14
15def test_version_less_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:
16 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
17 result = pytester.runpytest("--version")
18 assert result.ret == 0
19 result.stdout.fnmatch_lines([f"pytest {pytest.__version__}"])
20
21
22def test_versions():

Callers

nothing calls this directly

Calls 3

delenvMethod · 0.80
fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected