From 0a40ddd62b2c9be657471ff2cde19a09492b0774 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sun, 30 Jun 2024 13:40:22 -0700 Subject: [PATCH] umu_test: update test --- umu/umu_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/umu/umu_test.py b/umu/umu_test.py index 8ca7285f..c092e091 100644 --- a/umu/umu_test.py +++ b/umu/umu_test.py @@ -626,7 +626,7 @@ def test_latest_interrupt(self): # In the real usage, should be populated after successful callout # for latest Proton releases # In this case, assume the test variable will be downloaded - files = [("", ""), (self.test_archive.name, "")] + files = (("", ""), (self.test_archive.name, "")) thread_pool = ThreadPoolExecutor() with patch("umu_proton._fetch_proton") as mock_function: @@ -669,7 +669,7 @@ def test_latest_val_err(self): # latest Proton releases # When empty, it means the callout failed for some reason (e.g. no # internet) - files = [("", ""), (self.test_archive.name, "")] + files = (("", ""), (self.test_archive.name, "")) thread_pool = ThreadPoolExecutor() self.assertTrue( @@ -702,7 +702,7 @@ def test_latest_offline(self): # latest Proton releases # When empty, it means the callout failed for some reason (e.g. no # internet) - files = [] + files = () thread_pool = ThreadPoolExecutor() os.environ["PROTONPATH"] = "" @@ -733,7 +733,7 @@ def test_link_umu(self): latest = Path("UMU-Proton-9.0-beta15") latest.mkdir() Path(f"{latest}.sha512sum").touch() - files = [(f"{latest}.sha512sum", ""), (f"{latest}.tar.gz", "")] + files = ((f"{latest}.sha512sum", ""), (f"{latest}.tar.gz", "")) thread_pool = ThreadPoolExecutor() # Mock the latest Proton in /tmp @@ -788,7 +788,7 @@ def test_latest_umu(self): latest = Path("UMU-Proton-9.0-beta16") latest.mkdir() Path(f"{latest}.sha512sum").touch() - files = [(f"{latest}.sha512sum", ""), (f"{latest}.tar.gz", "")] + files = ((f"{latest}.sha512sum", ""), (f"{latest}.tar.gz", "")) thread_pool = ThreadPoolExecutor() # Mock the latest Proton in /tmp