feat: get last updated timestamp

This commit is contained in:
aclist committed 2026-11-01 23:42:06 +09:00
1 parent 46117ecdda
commit e3c1ef59ee
5 files changed
+57 -4

No files matched your search

+9 -1
View File
@@ -3,7 +3,7 @@ import pytest
from _pytest.monkeypatch import MonkeyPatch
from pathlib import Path
from dzgui.api.steam import get_app_allows_downloads
from dzgui.api.steam import get_app_allows_downloads, get_last_updated
from tests.fixtures import fixture_path
pytestmark = pytest.mark.apitest
@@ -43,6 +43,14 @@ def patch_api() -> None:
mp.undo()
def test_no_last_update(steam_path) -> None:
assert get_last_updated(steam_path, 555) is None
def test_last_update(steam_path) -> None:
assert get_last_updated(steam_path, 444) == "2026-10-22 00:09:33"
def test_app_allows_downloads(steam_path) -> None:
assert get_app_allows_downloads(steam_path, 111) is True