Skip to content

Commit 0d5822a

Browse files
committed
Ruff format
1 parent e268394 commit 0d5822a

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

umu/umu_test.py

+5-15
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ def test_update_umu_empty(self):
189189

190190
# Config
191191
self.test_local_share.joinpath("umu_version.json").touch()
192-
with self.test_local_share.joinpath("umu_version.json").open(
193-
mode="w"
194-
) as file:
192+
with self.test_local_share.joinpath("umu_version.json").open(mode="w") as file:
195193
file.write(data)
196194
json_local = umu_util._get_json(self.test_local_share, "umu_version.json")
197195

@@ -243,9 +241,7 @@ def test_update_umu_empty(self):
243241

244242
# Check if the configuration files are equal
245243
# We update this on every update of the tools
246-
with self.test_user_share.joinpath("umu_version.json").open(
247-
mode="rb"
248-
) as file1:
244+
with self.test_user_share.joinpath("umu_version.json").open(mode="rb") as file1:
249245
root = file1.read()
250246
local = b""
251247
with self.test_local_share.joinpath("umu_version.json").open(
@@ -427,9 +423,7 @@ def test_update_umu(self):
427423

428424
# Config
429425
self.test_local_share.joinpath("umu_version.json").touch()
430-
with self.test_local_share.joinpath("umu_version.json").open(
431-
mode="w"
432-
) as file:
426+
with self.test_local_share.joinpath("umu_version.json").open(mode="w") as file:
433427
file.write(data)
434428
json_local = umu_util._get_json(self.test_local_share, "umu_version.json")
435429

@@ -465,9 +459,7 @@ def test_update_umu(self):
465459
self.test_compat.joinpath("umu-Launcher").mkdir()
466460
for file in runner_files:
467461
if file == "umu-run":
468-
self.test_compat.joinpath("umu-run").symlink_to(
469-
"../../../umu_run.py"
470-
)
462+
self.test_compat.joinpath("umu-run").symlink_to("../../../umu_run.py")
471463
else:
472464
with self.test_compat.joinpath(file).open(mode="w") as filer:
473465
filer.write("foo")
@@ -547,9 +539,7 @@ def test_update_umu(self):
547539

548540
# Check if the configuration files are equal because we update this on
549541
# every update of the tools
550-
with self.test_user_share.joinpath("umu_version.json").open(
551-
mode="rb"
552-
) as file1:
542+
with self.test_user_share.joinpath("umu_version.json").open(mode="rb") as file1:
553543
root = file1.read()
554544
local = b""
555545
with self.test_local_share.joinpath("umu_version.json").open(

0 commit comments

Comments
 (0)