diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-04-24 11:21:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 10:21:33 -0700 |
commit | d223d82372e08fcca1fa4e06eed8f4b52fe89b18 (patch) | |
tree | 06d92013f24444a786ca65b042c70b2c8de209b6 /tests/session/cmd/test_sequential.py | |
parent | 47f13f5140a3f9235ea48596df3e86f08b03ec9d (diff) | |
download | tox-git-release-4.5.0.tar.gz |
Feature: suppress step timings for verbosity=1 #2891 (#2992)release-4.5.0
Diffstat (limited to 'tests/session/cmd/test_sequential.py')
-rw-r--r-- | tests/session/cmd/test_sequential.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/session/cmd/test_sequential.py b/tests/session/cmd/test_sequential.py index f3bd9231..c3e747e5 100644 --- a/tests/session/cmd/test_sequential.py +++ b/tests/session/cmd/test_sequential.py @@ -44,6 +44,16 @@ def test_run_sequential_fail(tox_project: ToxProjectCreator) -> None: assert Matches(r" a: FAIL code 1 \(.*=setup\[.*\]\+cmd\[.*\] seconds\)") == reports[-3] +def test_run_sequential_quiet(tox_project: ToxProjectCreator) -> None: + ini = "[tox]\nenv_list=a\nno_package=true\n[testenv]\ncommands=python -V" + project = tox_project({"tox.ini": ini}) + outcome = project.run("r", "-q", "-e", "a") + outcome.assert_success() + reports = outcome.out.splitlines()[-3:] + assert Matches(r" congratulations :\) \(.* seconds\)") == reports[-1] + assert Matches(r" a: OK \([\d.]+ seconds\)") == reports[-2] + + @pytest.mark.integration() def test_result_json_sequential( tox_project: ToxProjectCreator, |