diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-16 12:29:36 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-16 12:29:36 -0800 |
| commit | 06dfda7b5430bfc895a39defad50f184d41281f1 (patch) | |
| tree | 858948a451305a117678f6047f1a6b9ab714f72b /tests/conftest.py | |
| parent | dbb8dd8a3ba3e5bd65edae2aded253975708dc13 (diff) | |
| download | wikiget-06dfda7b5430bfc895a39defad50f184d41281f1.tar.gz wikiget-06dfda7b5430bfc895a39defad50f184d41281f1.zip | |
Additional type checking import blocks
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 10 |
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" |
