diff options
author | Claire Cecil <clairekcecil@gmail.com> | 2020-05-23 10:27:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 11:27:58 -0300 |
commit | 79701c65ed47d9fd9dbc8949a49136f25506d9e0 (patch) | |
tree | ca69b5d90ec708ca064a68b1625c7a42344d5527 /testing/test_helpconfig.py | |
parent | 05c22ff82363c1d11fa6d593dd4f404819abc69e (diff) | |
download | pytest-79701c65ed47d9fd9dbc8949a49136f25506d9e0.tar.gz |
Added support for less verbose version information (#7169)
Diffstat (limited to 'testing/test_helpconfig.py')
-rw-r--r-- | testing/test_helpconfig.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py index 5e4f85228..24590dd3b 100644 --- a/testing/test_helpconfig.py +++ b/testing/test_helpconfig.py @@ -2,11 +2,10 @@ import pytest from _pytest.config import ExitCode -def test_version(testdir, pytestconfig): +def test_version_verbose(testdir, pytestconfig): testdir.monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") - result = testdir.runpytest("--version") + result = testdir.runpytest("--version", "--version") assert result.ret == 0 - # p = py.path.local(py.__file__).dirpath() result.stderr.fnmatch_lines( ["*pytest*{}*imported from*".format(pytest.__version__)] ) @@ -14,6 +13,14 @@ def test_version(testdir, pytestconfig): result.stderr.fnmatch_lines(["*setuptools registered plugins:", "*at*"]) +def test_version_less_verbose(testdir, pytestconfig): + testdir.monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") + result = testdir.runpytest("--version") + assert result.ret == 0 + # p = py.path.local(py.__file__).dirpath() + result.stderr.fnmatch_lines(["pytest {}".format(pytest.__version__)]) + + def test_help(testdir): result = testdir.runpytest("--help") assert result.ret == 0 |