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

Function test_version_verbose

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

Source from the content-addressed store, hash-verified

4
5
6def test_version_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:
7 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
8 result = pytester.runpytest("--version", "--version")
9 assert result.ret == 0
10 result.stdout.fnmatch_lines([f"*pytest*{pytest.__version__}*imported from*"])
11 if pytestconfig.pluginmanager.list_plugin_distinfo():
12 result.stdout.fnmatch_lines(["*setuptools registered plugins:", "*at*"])
13
14
15def test_version_less_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:

Callers

nothing calls this directly

Calls 3

delenvMethod · 0.80
fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected