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 Jun 30, 2024
1 parent c6a5404 commit 0a40ddd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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"] = ""
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0a40ddd

Please sign in to comment.