Skip to content

Commit

Permalink
umu_test: add test for empty GAMEID
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Apr 19, 2024
1 parent f163e4e commit 8fa560d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,19 @@ def test_env_wine_empty(self):
os.environ["GAMEID"] = self.test_file
umu_run.check_env(self.env)

def test_env_gameid_empty(self):
"""Test check_env when $GAMEID is empty.
When the GAMEID is empty in the non-config usage, no app ids will be
set. As a result, no fixes will be applied to the current prefix
An ValueError should be raised
"""
with self.assertRaises(ValueError):
os.environ["WINEPREFIX"] = ""
os.environ["GAMEID"] = ""
umu_run.check_env(self.env)

def test_env_wine_dir(self):
"""Test check_env when $WINEPREFIX is not a directory.
Expand Down

0 comments on commit 8fa560d

Please sign in to comment.