From 20ffbe9f2801566a4e25f2065ffd3a6c6d43d34c Mon Sep 17 00:00:00 2001 From: dennisvang <29799340+dennisvang@users.noreply.github.com> Date: Tue, 14 Nov 2023 17:41:23 +0100 Subject: [PATCH] ruff format --- tests/test_client.py | 5 ++++- tests/test_utils.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 0ed7411..73fea3f 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -373,7 +373,10 @@ def test_purge(self): subdir.mkdir() readonly_file = dir_to_purge / 'readonly.dummy' items_to_purge = [ - readonly_file, dir_to_purge / 'some.dummy', subdir / 'other.dummy', subdir + readonly_file, + dir_to_purge / 'some.dummy', + subdir / 'other.dummy', + subdir, ] items_to_keep = [dir_to_purge / 'file.to.keep'] for item in items_to_purge + items_to_keep: diff --git a/tests/test_utils.py b/tests/test_utils.py index 84f56d1..18fbb72 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -57,7 +57,6 @@ def test_remove_readonly_file(self): if ON_WINDOWS: self.assertTrue(tufup.utils.remove_path(file_path, remove_readonly=True)) - def test_remove_readonly_dir(self): """ on linux: a readonly directory prevents deletion of the directory itself