Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 27, 2024
1 parent eeb1b4a commit 6ea6967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_hooks/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ea6967

Please sign in to comment.