Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_find_steam_specific_app_proton(
self, steam_app_factory, steam_dir, default_proton,
proton_factory):
"""
Set a specific Proton version for a game and check that it is
detected correctly
"""
custom_proton = proton_factory(
name="Proton 6.66", appid=54440, compat_tool_name="proton_6_66"
)
steam_app_factory(
name="Fake game", appid=10,
compat_tool_name="proton_6_66")
proton_app = find_steam_proton_app(
steam_path=str(steam_dir),
steam_apps=[default_proton, custom_proton],
appid=10
)
# Proton 4.20 is the global default, but Proton 6.66 is the selected
# version for this game
assert proton_app.name == "Proton 6.66"