aboutsummaryrefslogtreecommitdiff
path: root/tests/test_logging.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-07 12:19:15 -0800
committerCody Logan <cody@lokken.dev>2023-11-07 12:19:15 -0800
commit1f4046739a8fe913872a8b17362fe81a81adb581 (patch)
tree81f1bae01a5f0f44a08f6f0cab3d471717318f72 /tests/test_logging.py
parent5129ad62392948a033ee988e4093d095f5005c77 (diff)
downloadwikiget-1f4046739a8fe913872a8b17362fe81a81adb581.tar.gz
wikiget-1f4046739a8fe913872a8b17362fe81a81adb581.zip
Fix some pytest style issues
Diffstat (limited to 'tests/test_logging.py')
-rw-r--r--tests/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_logging.py b/tests/test_logging.py
index 55a3397..5d3aa4c 100644
--- a/tests/test_logging.py
+++ b/tests/test_logging.py
@@ -18,7 +18,7 @@
import logging
from pathlib import Path
-from pytest import LogCaptureFixture
+import pytest
from wikiget.logging import FileLogAdapter, configure_logging
from wikiget.wikiget import parse_args
@@ -27,7 +27,7 @@ from wikiget.wikiget import parse_args
class TestLogging:
logger = logging.getLogger()
- def test_custom_log_adapter(self, caplog: LogCaptureFixture) -> None:
+ def test_custom_log_adapter(self, caplog: pytest.LogCaptureFixture) -> None:
"""The custom log adapter should prepend the filename to log messages."""
args = parse_args(["File:Example.jpg"])
configure_logging(args.verbose, args.logfile, quiet=args.quiet)