(pytester: Pytester, pytestconfig, monkeypatch)
| 4 | |
| 5 | |
| 6 | def 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 | |
| 15 | def test_version_less_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None: |
nothing calls this directly
no test coverage detected