Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Apr 24, 2024
1 parent 97db1e2 commit fc157b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 2 additions & 4 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ def test_update_umu_empty(self):
return_value=None,
):
result = umu_util._update_umu(
self.test_user_share,
self.test_local_share,
json_root,
json_local,
Expand Down Expand Up @@ -439,7 +438,6 @@ def test_update_umu(self):
return_value=None,
):
result = umu_util._update_umu(
self.test_user_share,
self.test_local_share,
json_root,
json_local,
Expand Down Expand Up @@ -500,7 +498,7 @@ def test_update_umu(self):
num_local = len([file for file in self.test_local_share.glob("*")])
self.assertEqual(
num_share,
num_local - 2,
num_local - 1,
"Expected /usr/share/umu and .local/share/umu to contain same files",
)

Expand Down Expand Up @@ -1406,7 +1404,7 @@ def test_build_command(self):

# Build
test_command = umu_run.build_command(
self.env, self.test_local_share, test_command
self.env, self.test_local_share, self.test_user_share, test_command
)
self.assertIsInstance(test_command, list, "Expected a List from build_command")
self.assertEqual(
Expand Down
10 changes: 7 additions & 3 deletions umu/umu_test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ def test_build_command_entry(self):

# Build
with self.assertRaisesRegex(FileNotFoundError, "_v2-entry-point"):
umu_run.build_command(self.env, self.test_local_share, test_command)
umu_run.build_command(
self.env, self.test_local_share, self.test_user_share, test_command
)

def test_build_command_proton(self):
"""Test build_command.
Expand Down Expand Up @@ -307,7 +309,9 @@ def test_build_command_proton(self):

# Build
with self.assertRaisesRegex(FileNotFoundError, "proton"):
umu_run.build_command(self.env, self.test_local_share, test_command)
umu_run.build_command(
self.env, self.test_local_share, self.test_user_share, test_command
)

def test_build_command_toml(self):
"""Test build_command.
Expand Down Expand Up @@ -378,7 +382,7 @@ def test_build_command_toml(self):

# Build
test_command_result = umu_run.build_command(
self.env, self.test_local_share, test_command
self.env, self.test_local_share, self.test_user_share, test_command
)
self.assertTrue(
test_command_result is test_command, "Expected the same reference"
Expand Down

0 comments on commit fc157b0

Please sign in to comment.