From 6ea6967b9372458d9761544c49d85c5bac5e74d0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 12:06:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/conftest.py | 6 +++--- tests/test_hooks/test_hooks.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 70e842f..a3ea586 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -115,7 +115,7 @@ def has_line_containing(self, substring: str): return any(substring in line for line in self._lines) -@pytest.fixture() +@pytest.fixture def caperrlines(request: SubRequest) -> Generator[ErrlinesCaptureFixture, None, None]: """Convenience helper around capsys that only exposes non empty split stderr lines""" # most code lifted from upstreams capsys fixture @@ -146,7 +146,7 @@ def record(self): return self.records[0] if self.records else None -@pytest.fixture() +@pytest.fixture def capjson(request: SubRequest): """Convenience helper around capsys that exposes parsed JSON records from stderr""" # most code lifted from upstreams capsys fixture @@ -178,7 +178,7 @@ def messages(self) -> str: return "\n".join(e.msg for e in self.logger.buf) -@pytest.fixture() +@pytest.fixture def capbootstrap(_reload_modules: None): from loggia._internal.bootstrap_logger import bootstrap_logger diff --git a/tests/test_hooks/test_hooks.py b/tests/test_hooks/test_hooks.py index d42bf6b..0bd1f52 100644 --- a/tests/test_hooks/test_hooks.py +++ b/tests/test_hooks/test_hooks.py @@ -29,7 +29,7 @@ def test_set_excepthook_on(capsys: pytest.CaptureFixture[str]): assert sys.excepthook is not previous_hook -@pytest.fixture() +@pytest.fixture def _env_setup_teardown(): # Override the fixture to make it a no-op pass