Skip to content

Commit 7eb7dbf

Browse files
committed
tests: Remove unused file
test_updater_ng.py is a little archaic (as it uses the static test repository content from ye olden days). This commit does not change that but removes an extra file in client cache dir: it is now quite confusing as it looks a bit like intermediate root caching but is just an unused file. This has the nice side effect that tests now longer need to workaround this extra file. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent d5f1eea commit 7eb7dbf

File tree

2 files changed

+0
-90
lines changed

2 files changed

+0
-90
lines changed

tests/repository_data/client/test_repository1/metadata/current/1.root.json

Lines changed: 0 additions & 87 deletions
This file was deleted.

tests/test_updater_ng.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def test_refresh_and_download(self) -> None:
167167
# top-level targets are already in local cache (but remove others)
168168
os.remove(os.path.join(self.client_directory, "role1.json"))
169169
os.remove(os.path.join(self.client_directory, "role2.json"))
170-
os.remove(os.path.join(self.client_directory, "1.root.json"))
171170

172171
# top-level metadata is in local directory already
173172
self.updater.refresh()
@@ -214,7 +213,6 @@ def test_refresh_with_only_local_root(self) -> None:
214213
os.remove(os.path.join(self.client_directory, "targets.json"))
215214
os.remove(os.path.join(self.client_directory, "role1.json"))
216215
os.remove(os.path.join(self.client_directory, "role2.json"))
217-
os.remove(os.path.join(self.client_directory, "1.root.json"))
218216
self._assert_files_exist([Root.type])
219217

220218
self.updater.refresh()
@@ -239,7 +237,6 @@ def test_implicit_refresh_with_only_local_root(self) -> None:
239237
os.remove(os.path.join(self.client_directory, "targets.json"))
240238
os.remove(os.path.join(self.client_directory, "role1.json"))
241239
os.remove(os.path.join(self.client_directory, "role2.json"))
242-
os.remove(os.path.join(self.client_directory, "1.root.json"))
243240
self._assert_files_exist(["root"])
244241

245242
# Get targetinfo for 'file3.txt' listed in the delegated role1

0 commit comments

Comments
 (0)