mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
tests: Fix test_load_metadata_from_cache for versioned roots
Expect (failing) call to open for "root_history/2.root.json" now that the client stores versioned roots. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
This commit is contained in:
parent
cea1745cef
commit
4aa09ff7d5
1 changed files with 1 additions and 0 deletions
|
|
@ -732,6 +732,7 @@ def test_load_metadata_from_cache(self, wrapped_open: MagicMock) -> None:
|
|||
wrapped_open.assert_has_calls(
|
||||
[
|
||||
call(os.path.join(self.metadata_dir, "root.json"), "rb"),
|
||||
call(os.path.join(self.metadata_dir, "root_history/2.root.json"), "rb"),
|
||||
call(os.path.join(self.metadata_dir, "timestamp.json"), "rb"),
|
||||
call(os.path.join(self.metadata_dir, "snapshot.json"), "rb"),
|
||||
call(os.path.join(self.metadata_dir, "targets.json"), "rb"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue