From 8fe62f6ebae7836c57c6f8fb99bce0026597d1fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 11 Mar 2024 09:22:08 -0400 Subject: [PATCH] Remove _caplog_ from test name All the tests in this file are tests of `caplog` --- testing/logging/test_fixture.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/logging/test_fixture.py b/testing/logging/test_fixture.py index 3edce4335..7ccafa287 100644 --- a/testing/logging/test_fixture.py +++ b/testing/logging/test_fixture.py @@ -308,7 +308,7 @@ def private_assert_caplog_records_is_setup_call(caplog: pytest.LogCaptureFixture assert set(caplog_records) == {"setup", "call"} -def test_caplog_captures_for_all_stages( +def test_captures_for_all_stages( caplog: pytest.LogCaptureFixture, logging_during_setup_and_teardown: None ) -> None: assert not caplog.records @@ -367,7 +367,7 @@ def test_ini_controls_global_log_level(pytester: Pytester) -> None: assert result.ret == 0 -def test_caplog_can_override_global_log_level(pytester: Pytester) -> None: +def test_can_override_global_log_level(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @@ -406,7 +406,7 @@ def test_caplog_can_override_global_log_level(pytester: Pytester) -> None: assert result.ret == 0 -def test_caplog_captures_despite_exception(pytester: Pytester) -> None: +def test_captures_despite_exception(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest