From d223d82372e08fcca1fa4e06eed8f4b52fe89b18 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 24 Apr 2023 11:21:33 -0600 Subject: Feature: suppress step timings for verbosity=1 #2891 (#2992) --- tests/session/cmd/test_sequential.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/session/cmd/test_sequential.py') 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, -- cgit v1.2.1