@@ -189,9 +189,7 @@ def test_update_umu_empty(self):
189
189
190
190
# Config
191
191
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 :
195
193
file .write (data )
196
194
json_local = umu_util ._get_json (self .test_local_share , "umu_version.json" )
197
195
@@ -243,9 +241,7 @@ def test_update_umu_empty(self):
243
241
244
242
# Check if the configuration files are equal
245
243
# 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 :
249
245
root = file1 .read ()
250
246
local = b""
251
247
with self .test_local_share .joinpath ("umu_version.json" ).open (
@@ -427,9 +423,7 @@ def test_update_umu(self):
427
423
428
424
# Config
429
425
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 :
433
427
file .write (data )
434
428
json_local = umu_util ._get_json (self .test_local_share , "umu_version.json" )
435
429
@@ -465,9 +459,7 @@ def test_update_umu(self):
465
459
self .test_compat .joinpath ("umu-Launcher" ).mkdir ()
466
460
for file in runner_files :
467
461
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" )
471
463
else :
472
464
with self .test_compat .joinpath (file ).open (mode = "w" ) as filer :
473
465
filer .write ("foo" )
@@ -547,9 +539,7 @@ def test_update_umu(self):
547
539
548
540
# Check if the configuration files are equal because we update this on
549
541
# 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 :
553
543
root = file1 .read ()
554
544
local = b""
555
545
with self .test_local_share .joinpath ("umu_version.json" ).open (
0 commit comments