summaryrefslogtreecommitdiff
path: root/tests/test_steam_service.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 16:48:35 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 16:48:35 -0400
commit81feb03288166755545401b9df2ff2c9bc3ae7d7 (patch)
tree7fc6799626519e5b01fb137f5440c99fda5faca7 /tests/test_steam_service.py
parentf185d26f4d37894183cdfa8c3e6ffc718cb3b103 (diff)
downloaddecky-lsfg-vk-81feb03288166755545401b9df2ff2c9bc3ae7d7.tar.gz
decky-lsfg-vk-81feb03288166755545401b9df2ff2c9bc3ae7d7.zip
handle flatpak grey, id proton and exclusionschore/migrate
Diffstat (limited to 'tests/test_steam_service.py')
-rw-r--r--tests/test_steam_service.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/test_steam_service.py b/tests/test_steam_service.py
index 004ffb6..75cdabf 100644
--- a/tests/test_steam_service.py
+++ b/tests/test_steam_service.py
@@ -15,7 +15,7 @@ from lsfg_vk.steam_service import SteamService
class SteamShortcutTests(unittest.TestCase):
- def test_direct_flatpak_shortcut_is_ordinary_non_steam_metadata(self):
+ def test_direct_flatpak_shortcut_is_marked(self):
game = SteamService._shortcut_game(
{
"appid": 123456,
@@ -30,6 +30,24 @@ class SteamShortcutTests(unittest.TestCase):
"appid": "123456",
"name": "PCSX2 shortcut",
"nonSteam": True,
+ "isFlatpakShortcut": True,
+ })
+
+ def test_bare_flatpak_shortcut_is_marked(self):
+ game = SteamService._shortcut_game(
+ {
+ "appid": 654321,
+ "AppName": "Faugus shortcut",
+ "Exe": '"flatpak"',
+ "LaunchOptions": "run io.github.Faugus.faugus-launcher --game elliot",
+ }
+ )
+
+ self.assertEqual(game, {
+ "appid": "654321",
+ "name": "Faugus shortcut",
+ "nonSteam": True,
+ "isFlatpakShortcut": True,
})
def test_emudeck_launcher_is_ordinary_non_steam_metadata(self):