From 49880311e5d4eea9a951bf605f2b50286476fca9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:33:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- testing/logging/test_fixture.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/logging/test_fixture.py b/testing/logging/test_fixture.py index f8ecf4fd1..c1cfff632 100644 --- a/testing/logging/test_fixture.py +++ b/testing/logging/test_fixture.py @@ -302,7 +302,9 @@ def logging_during_setup_and_teardown( assert [x.message for x in caplog.get_records("teardown")] == ["a_teardown_log"] -def private_assert_caplog_records_is_setup_call(caplog: pytest.LogCaptureFixture) -> None: +def private_assert_caplog_records_is_setup_call( + caplog: pytest.LogCaptureFixture, +) -> None: # This reaches into private API, don't use this type of thing in real tests! caplog_records = caplog._item.stash[caplog_records_key] assert set(caplog_records) == {"setup", "call"} @@ -320,6 +322,7 @@ def test_captures_for_all_stages( private_assert_caplog_records_is_setup_call(caplog) + def test_clear_for_call_stage( caplog: pytest.LogCaptureFixture, logging_during_setup_and_teardown: None ) -> None: