diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_parse.py | 8 | ||||
| -rw-r--r-- | tests/test_validations.py | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index e3bef2d..7ef182c 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -19,15 +19,19 @@ from __future__ import annotations import io import logging -from pathlib import Path +from typing import TYPE_CHECKING import pytest from wikiget.exceptions import ParseError -from wikiget.file import File from wikiget.parse import get_dest, read_batch_file from wikiget.wikiget import parse_args +if TYPE_CHECKING: + from pathlib import Path + + from wikiget.file import File + class TestGetDest: @pytest.fixture() diff --git a/tests/test_validations.py b/tests/test_validations.py index a8fbf1b..5263cdc 100644 --- a/tests/test_validations.py +++ b/tests/test_validations.py @@ -17,13 +17,16 @@ from __future__ import annotations -from pathlib import Path -from re import Match +from typing import TYPE_CHECKING import pytest from wikiget.validations import valid_file, valid_site, verify_hash +if TYPE_CHECKING: + from pathlib import Path + from re import Match + class TestSiteInput: @pytest.fixture( |
