Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Root-Core committed Dec 16, 2024
1 parent 3a2cb55 commit 5b94830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions protonfixes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def testGetGameNone(self):
self.assertTrue('SteamGameId' not in os.environ, 'SteamGameId is set')
self.assertTrue('UMU_ID' not in os.environ, 'UMU_ID is set')
self.assertTrue('SteamAppId' not in os.environ, 'SteamAppId is set')
result = func()
self.assertFalse(result, 'None was not returned')
with self.assertRaises(SystemExit):
func()

def testGetStoreNameZoom(self):
"""Pass zoomplatform as store name
Expand Down
2 changes: 1 addition & 1 deletion util.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def protondir() -> Path:
@functools.lru_cache
def protonprefix() -> Path:
"""Returns wineprefix's path used by proton"""
return Path(os.environ['STEAM_COMPAT_DATA_PATH']) / 'pfx'
return Path(os.environ.get('STEAM_COMPAT_DATA_PATH', '')) / 'pfx'


@functools.lru_cache
Expand Down

0 comments on commit 5b94830

Please sign in to comment.