Skip to content

Commit

Permalink
Ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Mar 21, 2024
1 parent e268394 commit 0d5822a
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ def test_update_umu_empty(self):

# Config
self.test_local_share.joinpath("umu_version.json").touch()
with self.test_local_share.joinpath("umu_version.json").open(
mode="w"
) as file:
with self.test_local_share.joinpath("umu_version.json").open(mode="w") as file:
file.write(data)
json_local = umu_util._get_json(self.test_local_share, "umu_version.json")

Expand Down Expand Up @@ -243,9 +241,7 @@ def test_update_umu_empty(self):

# Check if the configuration files are equal
# We update this on every update of the tools
with self.test_user_share.joinpath("umu_version.json").open(
mode="rb"
) as file1:
with self.test_user_share.joinpath("umu_version.json").open(mode="rb") as file1:
root = file1.read()
local = b""
with self.test_local_share.joinpath("umu_version.json").open(
Expand Down Expand Up @@ -427,9 +423,7 @@ def test_update_umu(self):

# Config
self.test_local_share.joinpath("umu_version.json").touch()
with self.test_local_share.joinpath("umu_version.json").open(
mode="w"
) as file:
with self.test_local_share.joinpath("umu_version.json").open(mode="w") as file:
file.write(data)
json_local = umu_util._get_json(self.test_local_share, "umu_version.json")

Expand Down Expand Up @@ -465,9 +459,7 @@ def test_update_umu(self):
self.test_compat.joinpath("umu-Launcher").mkdir()
for file in runner_files:
if file == "umu-run":
self.test_compat.joinpath("umu-run").symlink_to(
"../../../umu_run.py"
)
self.test_compat.joinpath("umu-run").symlink_to("../../../umu_run.py")
else:
with self.test_compat.joinpath(file).open(mode="w") as filer:
filer.write("foo")
Expand Down Expand Up @@ -547,9 +539,7 @@ def test_update_umu(self):

# Check if the configuration files are equal because we update this on
# every update of the tools
with self.test_user_share.joinpath("umu_version.json").open(
mode="rb"
) as file1:
with self.test_user_share.joinpath("umu_version.json").open(mode="rb") as file1:
root = file1.read()
local = b""
with self.test_local_share.joinpath("umu_version.json").open(
Expand Down

0 comments on commit 0d5822a

Please sign in to comment.