fix: rewrite tests

This commit is contained in:
aclist committed 2026-05-15 23:34:43 +09:00
1 parent 156c1f8ec4
commit 8fc7aa5165
3 files changed
+33 -11

No files matched your search

+4
View File
@@ -438,6 +438,10 @@ def get_app_path(folders_path: Path, appid: int) -> Path:
raise AppNotInstalledError(
f"Failed to find a libraryfolder for the appid {appid}"
)
if Path(app_path).exists() is False:
raise AppMovedError(
f"The location '{app_path}' pointed to by '{appid}' no longer exists and may have been changed on the disk."
)
return Path(app_path)