aboutsummaryrefslogtreecommitdiff
path: root/tests/test_logging.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-20 10:05:27 -0800
committerGitHub <noreply@github.com>2023-11-20 10:05:27 -0800
commit2c6efe630af507f7f1b76048100f6500244151a3 (patch)
tree8ad0ab091956a665a2d2a5471b36b1cf0f856990 /tests/test_logging.py
parentd78f25717567870d4bb991e9bca7451f925f29ac (diff)
parent7c5e87695f56ea3de7a04082b357998fc825e625 (diff)
downloadwikiget-2c6efe630af507f7f1b76048100f6500244151a3.tar.gz
wikiget-2c6efe630af507f7f1b76048100f6500244151a3.zip
Merge pull request #15 from clpo13/reduce-api-calls
Speed up batch downloads by reducing the number of API calls
Diffstat (limited to 'tests/test_logging.py')
-rw-r--r--tests/test_logging.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_logging.py b/tests/test_logging.py
index 8d58cdf..a402120 100644
--- a/tests/test_logging.py
+++ b/tests/test_logging.py
@@ -17,14 +17,18 @@
"""Define tests related to the wikiget.logging module."""
+from __future__ import annotations
+
import logging
from pathlib import Path
-
-import pytest
+from typing import TYPE_CHECKING
from wikiget.logging import FileLogAdapter, configure_logging
from wikiget.wikiget import parse_args
+if TYPE_CHECKING:
+ import pytest
+
class TestLogging:
"""Define tests related to wikiget.logging.configure_logging and FileLogAdapter."""