mirror of
https://github.com/aclist/dztui.git
synced 2026-11-14 22:01:51 +01:00
chore: typehint tests
This commit is contained in:
1 parent
a5374d1f1a
commit
e29433b388
23 files changed
+170
-93
No files matched your search
@@ -1,8 +1,12 @@
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from dzgui.api.steam import is_dayz_downloading
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from _pytest.monkeypatch import MonkeyPatch
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"file_list, expect",
|
||||
@@ -16,7 +20,9 @@ from dzgui.api.steam import is_dayz_downloading
|
||||
(["state_221100_1111"], False),
|
||||
],
|
||||
)
|
||||
def test_dayz_patch_pending(monkeypatch, file_list: list[str], expect: bool) -> None:
|
||||
def test_dayz_patch_pending(
|
||||
monkeypatch: "MonkeyPatch", file_list: list[str], expect: bool
|
||||
) -> None:
|
||||
def mock_get_pending_downloads(steam_path: Path, appid: int) -> None:
|
||||
files = [Path(file) for file in file_list]
|
||||
return files
|
||||
|
||||
Reference in new issue
Block a user