Skip to content

Commit 16c3594

Browse files
sonic2kkDavidoTek
andauthored
test_util: Add test for download_awacy_gamelist (#535)
* test_util: Add test for `download_awacy_gamelist` * test_util: Add offline unhappy path for `test_download_awacy_gamelist_offline` * tests: Add `pytest-mock` and `pyfakefs` to `tests/requirements.txt` --------- Co-authored-by: DavidoTek <54072917+DavidoTek@users.noreply.github.com>
1 parent d3093e2 commit 16c3594

4 files changed

Lines changed: 453 additions & 3 deletions

File tree

pupgui2/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def _download_awacy_gamelist_thread():
498498
if not is_online():
499499
return
500500

501-
t = threading.Thread(target=_download_awacy_gamelist_thread)
501+
t = threading.Thread(target = _download_awacy_gamelist_thread, name = '_download_awacy_gamelist')
502502
t.start()
503503

504504

Lines changed: 377 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,377 @@
1+
[
2+
{
3+
"url": "",
4+
"name": "Halo: The Master Chief Collection",
5+
"logo": "",
6+
"native": false,
7+
"status": "Supported",
8+
"reference": "",
9+
"anticheats": [
10+
"Easy Anti-Cheat"
11+
],
12+
"notes": [
13+
[
14+
"All-modes enabled with minor caveats",
15+
"https://www.gamingonlinux.com/2023/04/halo-the-master-chief-collection-gets-steam-deck-support/"
16+
],
17+
[
18+
"Singleplayer, co-op, and custom matches work",
19+
"https://www.protondb.com/app/976730#s1M6yjsTt"
20+
]
21+
],
22+
"updates": [
23+
{
24+
"name": "Tried to enable EAC",
25+
"date": "Apr 12, 2022, 8:10 AM GMT+2",
26+
"reference": "https://www.xda-developers.com/halo-mcc-broken-steam-deck/"
27+
},
28+
{
29+
"name": "Updated Linux EAC Files",
30+
"date": "Aug 31, 2022, 17:00:12 UTC",
31+
"reference": "https://steamdb.info/patchnotes/9367265/"
32+
},
33+
{
34+
"name": "Still actively working on it",
35+
"date": "Dec 15, 2022, 4:15 PM GMT+1",
36+
"reference": "https://www.theverge.com/23499215/valve-steam-deck-interview-late-2022"
37+
},
38+
{
39+
"name": "Steam Deck Support",
40+
"date": "Apr 6, 2023, 8:00 PM UTC",
41+
"reference": "https://support.halowaypoint.com/hc/en-us/articles/14589112499348"
42+
}
43+
],
44+
"storeIds": {
45+
"steam": "976730"
46+
},
47+
"slug": "halo-the-master-chief-collection",
48+
"dateChanged": "2024-01-19T04:40:56.000Z"
49+
},
50+
{
51+
"url": "https://www.fortnite.com/",
52+
"name": "Fortnite",
53+
"logo": "",
54+
"native": false,
55+
"status": "Denied",
56+
"reference": "",
57+
"anticheats": [
58+
"Easy Anti-Cheat"
59+
],
60+
"notes": [
61+
[
62+
"Works on Xbox-Cloud",
63+
"https://news.xbox.com/en-us/2022/05/05/play-fortnite-with-xbox-cloud-gaming-for-free/"
64+
]
65+
],
66+
"updates": [
67+
{
68+
"name": "Not confident in anti-cheat",
69+
"date": "Feb 07, 2022, 6:59 AM GMT+2",
70+
"reference": "https://twitter.com/TimSweeneyEpic/status/1490565925648715781"
71+
},
72+
{
73+
"name": "Removed Hyperion",
74+
"date": "Nov 1, 2022, 6:43 PM GMT+1",
75+
"reference": "https://github.com/Starz0r/AreWeAntiCheatYet/issues/918"
76+
},
77+
{
78+
"name": "Was running for a short period of time",
79+
"date": "Nov 2, 2022, 8:04 AM GMT+1",
80+
"reference": "https://github.com/Starz0r/AreWeAntiCheatYet/issues/918#issuecomment-1299673303"
81+
},
82+
{
83+
"name": "Removed BattlEye",
84+
"date": "Jun 11, 2024, 5:34 PM GMT+1",
85+
"reference": "https://x.com/ShiinaBR/status/1800567329870537171"
86+
}
87+
],
88+
"storeIds": {
89+
"epic": {
90+
"namespace": "fn",
91+
"slug": "fortnite"
92+
}
93+
},
94+
"slug": "fortnite",
95+
"dateChanged": "2024-10-04T17:23:46.000Z"
96+
},
97+
{
98+
"url": "",
99+
"name": "Battlefield™ 2042",
100+
"logo": "",
101+
"native": false,
102+
"status": "Denied",
103+
"reference": "https://www.protondb.com/app/1517290#atmpx3XrXL",
104+
"anticheats": [
105+
"EA anticheat"
106+
],
107+
"notes": [],
108+
"updates": [],
109+
"storeIds": {
110+
"steam": "1517290",
111+
"epic": {
112+
"namespace": "52f57f57120c440fad9bfa0e6c279317",
113+
"slug": "battlefield-2042"
114+
}
115+
},
116+
"slug": "battlefield-2042",
117+
"dateChanged": "2024-11-04T00:18:17.181Z"
118+
},
119+
{
120+
"url": "https://www.ea.com/games/apex-legends",
121+
"name": "Apex Legends",
122+
"logo": "",
123+
"native": false,
124+
"status": "Denied",
125+
"reference": "",
126+
"anticheats": [
127+
"Easy Anti-Cheat",
128+
"Hyperion"
129+
],
130+
"notes": [],
131+
"updates": [
132+
{
133+
"name": "Enabled Linux support shortly after SteamDeck launch",
134+
"date": "2022-03-01T18:00:27+00:00",
135+
"reference": "https://steamdb.info/patchnotes/8270674/"
136+
},
137+
{
138+
"name": "Linux support disabled",
139+
"date": "Oct 31, 2024, 4:07 PM UTC",
140+
"reference": "https://x.com/PlayApex/status/1852019667315102151"
141+
}
142+
],
143+
"storeIds": {
144+
"steam": "1172470"
145+
},
146+
"slug": "apex-legends",
147+
"dateChanged": "2024-10-31T18:29:00.000Z"
148+
},
149+
{
150+
"url": "https://playvalorant.com",
151+
"name": "Valorant",
152+
"logo": "",
153+
"native": false,
154+
"status": "Denied",
155+
"reference": "https://playvalorant.com/en-gb/specs/",
156+
"anticheats": [
157+
"Vanguard"
158+
],
159+
"notes": [],
160+
"updates": [
161+
{
162+
"name": "Vanguard developer claims Linux has \"too much attack surface\".",
163+
"date": "Fri, 26 Jan 2024 01:27:06 GMT",
164+
"reference": "https://github.com/AreWeAntiCheatYet/AreWeAntiCheatYet/assets/33342705/266b364f-8964-4ae2-9cc4-58e2fd5f9947"
165+
}
166+
],
167+
"storeIds": {
168+
"epic": {
169+
"namespace": "cbd5b3d310a54b12bf3fe8c41994174f",
170+
"slug": "valorant"
171+
}
172+
},
173+
"slug": "valorant",
174+
"dateChanged": "2024-09-02T22:22:14.140Z"
175+
},
176+
{
177+
"url": "https://www.halowaypoint.com/de-de/halo-infinite",
178+
"name": "Halo Infinite",
179+
"logo": "",
180+
"native": false,
181+
"status": "Supported",
182+
"reference": "https://www.gamingonlinux.com/2024/03/halo-infinite-added-easy-anti-cheat-enabled-for-linux-steam-deck/",
183+
"anticheats": [
184+
"Arbiter",
185+
"Easy Anti-Cheat"
186+
],
187+
"notes": [
188+
[
189+
"Requires Patched Mesa & Proton GE",
190+
"https://github.com/ValveSoftware/Proton/issues/5030#issuecomment-1169003294"
191+
]
192+
],
193+
"updates": [
194+
{
195+
"name": "No longer requires workaround",
196+
"date": "Dec 18, 2022, 3:18 AM GMT+1",
197+
"reference": "https://github.com/Starz0r/AreWeAntiCheatYet/issues/1022"
198+
}
199+
],
200+
"storeIds": {
201+
"steam": "1240440"
202+
},
203+
"slug": "halo-infinite",
204+
"dateChanged": "2024-04-11T19:24:20.671Z"
205+
},
206+
{
207+
"url": "https://www.back4blood.com/",
208+
"name": "Back 4 Blood",
209+
"logo": "",
210+
"native": false,
211+
"status": "Supported",
212+
"reference": "",
213+
"anticheats": [
214+
"Easy Anti-Cheat"
215+
],
216+
"notes": [],
217+
"updates": [
218+
{
219+
"name": "Back 4 Blood on Steam Deck, Linux PCs with WINE/Proton",
220+
"date": "Apr 12, 2022, 0:00 AM",
221+
"reference": "https://back4blood.com/en-us/patch-notes/april-2022-update"
222+
}
223+
],
224+
"storeIds": {
225+
"steam": "924970",
226+
"epic": {
227+
"namespace": "57dfd95548214a138218e56cd9e5b9d8",
228+
"slug": "back-4-blood"
229+
}
230+
},
231+
"slug": "back-4-blood",
232+
"dateChanged": "2024-01-19T04:40:56.000Z"
233+
},
234+
{
235+
"url": "",
236+
"name": "Paladins",
237+
"logo": "",
238+
"native": false,
239+
"status": "Running",
240+
"reference": "",
241+
"anticheats": [
242+
"Easy Anti-Cheat"
243+
],
244+
"notes": [
245+
[
246+
"Make sure to check recent updates, the game is known to break often (And the status may not update to reflect that)",
247+
""
248+
]
249+
],
250+
"updates": [
251+
{
252+
"name": "Hope to provide such support in the near future",
253+
"date": "Nov 09, 2021, 5:55 PM EST",
254+
"reference": "https://www.theverge.com/2021/10/5/22709918/valve-steam-deck-supported-games-anti-cheat-proton-eac-battleye-epic"
255+
},
256+
{
257+
"name": "Running with Proton GE, Anti-Cheat may not be intentionally enabled",
258+
"date": "Sat May 14 2022 23:57:51 GMT+0000",
259+
"reference": "https://www.protondb.com/app/444090#7U2uy5DZzc"
260+
},
261+
{
262+
"name": "Proton Experimental - Now Playable: Paladins",
263+
"date": "Thu Jun 30 2022 16:00:00 GMT+0000",
264+
"reference": "https://github.com/ValveSoftware/Proton/wiki/Changelog"
265+
},
266+
{
267+
"name": "Reports of game not working",
268+
"date": "Jul 13, 2022, 2:29 AM GMT+2",
269+
"reference": "https://github.com/Starz0r/AreWeAntiCheatYet/issues/581"
270+
},
271+
{
272+
"name": "Previously working most likely due to fluke in EAC Config",
273+
"date": "Aug 05, 2022, 9:57 PM",
274+
"reference": "https://github.com/ValveSoftware/Proton/issues/6062#issuecomment-1206809079"
275+
},
276+
{
277+
"name": "No plans to dedicate time for steam deck / linux compatibility",
278+
"date": "Feb 14, 2023, 02:13 AM",
279+
"reference": "https://www.reddit.com/r/paladinsgame/comments/110mcuf/with_em_striving_to_do_better_how_about_some/j8g2nam/"
280+
},
281+
{
282+
"name": "EAC updated, and Linux allowed after Evil Mojo layoffs",
283+
"date": "April 1, 2025, 12:00 AM",
284+
"reference": ""
285+
}
286+
],
287+
"storeIds": {
288+
"steam": "444090",
289+
"epic": {
290+
"namespace": "badb0ee71b474ed591ec43212547cfc8",
291+
"slug": "paladins"
292+
}
293+
},
294+
"slug": "paladins",
295+
"dateChanged": "2025-04-05T19:13:42.0000000-04:00"
296+
},
297+
{
298+
"url": "https://pubg.com/",
299+
"name": "PUBG: Battlegrounds",
300+
"logo": "",
301+
"native": false,
302+
"status": "Broken",
303+
"reference": "",
304+
"anticheats": [
305+
"Zakynthos",
306+
"BattlEye",
307+
"UNCHEATER"
308+
],
309+
"notes": [],
310+
"updates": [
311+
{
312+
"name": "The team does not have a comment for this",
313+
"date": "Nov 09, 2021, 5:55 PM EST",
314+
"reference": "https://www.theverge.com/2021/10/5/22709918/valve-steam-deck-supported-games-anti-cheat-proton-eac-battleye-epic"
315+
}
316+
],
317+
"storeIds": {
318+
"steam": "578080"
319+
},
320+
"slug": "pubg-battlegrounds",
321+
"dateChanged": "2024-01-19T04:40:56.000Z"
322+
},
323+
{
324+
"url": "https://ubisoft.com/en-us/game/rainbow-six/siege",
325+
"name": "Tom Clancy's Rainbow Six® Siege",
326+
"logo": "",
327+
"native": false,
328+
"status": "Denied",
329+
"reference": "https://r6fix.ubi.com/projects/RAINBOW6-SIEGE-LIVE/issues/LIVE-59642",
330+
"anticheats": [
331+
"FairFight",
332+
"BattlEye"
333+
],
334+
"notes": [
335+
[
336+
"Show your support!",
337+
"https://r6fix.ubi.com/projects/RAINBOW6-SIEGE-LIVE/issues/LIVE-57005"
338+
]
339+
],
340+
"updates": [
341+
{
342+
"name": "We don’t have anything to share at this time",
343+
"date": "Nov 09, 2021, 5:55 PM EST",
344+
"reference": "https://www.theverge.com/2021/10/5/22709918/valve-steam-deck-supported-games-anti-cheat-proton-eac-battleye-epic"
345+
},
346+
{
347+
"name": "Show your support!",
348+
"date": "Nov 30, 2021, 5:55 PM EST",
349+
"reference": "https://www.gamingonlinux.com/2021/11/ubisoft-proton-support-rainbow-six-siege-linux/"
350+
},
351+
{
352+
"name": "Show your support! (Thread moved)",
353+
"date": "Oct 05, 2021, 10:21 PM EST",
354+
"reference": "https://discussions.ubisoft.com/topic/111054/linux-support-for-r6s"
355+
},
356+
{
357+
"name": "Show your support! (Bug tracker)",
358+
"date": "May 16, 2023, 0:00 UTC",
359+
"reference": "https://r6fix.ubi.com/projects/RAINBOW6-SIEGE-LIVE/issues/LIVE-49179"
360+
},
361+
{
362+
"name": "Show your support! (Bug tracker)",
363+
"date": "March 23, 2024, 0:00 UTC",
364+
"reference": "https://r6fix.ubi.com/projects/RAINBOW6-SIEGE-LIVE/issues/LIVE-58221"
365+
}
366+
],
367+
"storeIds": {
368+
"steam": "359550",
369+
"epic": {
370+
"namespace": "carnation",
371+
"slug": "rainbow-six-siege"
372+
}
373+
},
374+
"slug": "rainbow-six-siege",
375+
"dateChanged": "2024-09-22T22:18:43.803Z"
376+
}
377+
]

tests/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ pytest-md
33
pytest-emoji
44

55
pytest-responses
6+
pytest-mock
7+
8+
pyfakefs

0 commit comments

Comments
 (0)