diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-20 10:05:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-20 10:05:27 -0800 |
| commit | 2c6efe630af507f7f1b76048100f6500244151a3 (patch) | |
| tree | 8ad0ab091956a665a2d2a5471b36b1cf0f856990 /tests/conftest.py | |
| parent | d78f25717567870d4bb991e9bca7451f925f29ac (diff) | |
| parent | 7c5e87695f56ea3de7a04082b357998fc825e625 (diff) | |
| download | wikiget-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/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" |
