Skip to content

Commit

Permalink
Make "cap_logs" fixture static
Browse files Browse the repository at this point in the history
  • Loading branch information
sscherfke committed Jan 4, 2025
1 parent 29c6eb4 commit 3181b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tracebacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ class TestLogException:
"""

@pytest.fixture
def cap_logs(self) -> structlog.testing.LogCapture:
@staticmethod
def cap_logs() -> structlog.testing.LogCapture:
"""
Create a LogCapture to be used as processor and fixture for retrieving
logs in tests.
Expand Down

0 comments on commit 3181b64

Please sign in to comment.