Skip to content

Commit

Permalink
umu_test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Dec 12, 2024
1 parent d139746 commit 4f447ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,19 +1175,19 @@ def test_ge_proton_none(self):
Tests the case when the user has no internet connection or GE-Proton
wasn't found in local system.
"""
mock_session_pools = (MagicMock(), MagicMock())
with (
self.assertRaises(FileNotFoundError),
patch.object(umu_proton, "_fetch_releases", return_value=None),
patch.object(umu_proton, "_get_latest", return_value=None),
patch.object(
umu_proton, "_get_from_steamcompat", return_value=None
),
ThreadPoolExecutor() as thread_pool,
):
os.environ["WINEPREFIX"] = self.test_file
os.environ["GAMEID"] = self.test_file
os.environ["PROTONPATH"] = "GE-Proton"
umu_run.check_env(self.env, thread_pool)
umu_run.check_env(self.env, mock_session_pools)
self.assertFalse(
os.environ.get("PROTONPATH"), "Expected empty string"
)
Expand Down

0 comments on commit 4f447ba

Please sign in to comment.