mirror of
https://github.com/aclist/dztui.git
synced 2026-11-13 21:31:52 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
3e7b49203a
commit
f7d95d5407
11 files changed
+99
-61
No files matched your search
@@ -23,11 +23,11 @@ if TYPE_CHECKING:
|
||||
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:
|
||||
def mock_get_pending_downloads(steam_path: Path, appid: int) -> list[Path]:
|
||||
files = [Path(file) for file in file_list]
|
||||
return files
|
||||
|
||||
monkeypatch.setattr(
|
||||
"dzgui.api.steam.get_pending_downloads", mock_get_pending_downloads
|
||||
)
|
||||
assert is_dayz_downloading(Path("/tmp"), Path("/tmp")) == expect
|
||||
assert is_dayz_downloading(Path("/tmp"), 221100) == expect
|
||||
Reference in new issue
Block a user