From 8fa560dbf224d8ec767d4aa586f0ed1d593b792f Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:53:05 -0700 Subject: [PATCH] umu_test: add test for empty GAMEID --- umu/umu_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/umu/umu_test.py b/umu/umu_test.py index b1b7fba26..94c1f18fb 100644 --- a/umu/umu_test.py +++ b/umu/umu_test.py @@ -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.