aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 6088029..128b581 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -17,13 +17,19 @@
"""Define fixtures used across all tests in this folder."""
-from pathlib import Path
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
import pytest
-import requests_mock as rm
from wikiget.file import File
+if TYPE_CHECKING:
+ from pathlib import Path
+
+ import requests_mock as rm
+
# 2x2 JPEG
TEST_FILE_BYTES = (
b"\xff\xd8\xff\xdb\x00C\x00\x03\x02\x02\x02\x02\x02\x03\x02\x02\x02\x03\x03\x03\x03"