mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
try fixing test
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
This commit is contained in:
parent
0e65ba0766
commit
d452739017
1 changed files with 2 additions and 1 deletions
|
|
@ -331,7 +331,8 @@ def test_writeall(self):
|
|||
# snapshot modifies the Root metadata, which specifies whether a repository
|
||||
# supports consistent snapshots. Verify that an exception is raised due to
|
||||
# the missing signatures of Root and Snapshot.
|
||||
self.assertRaises(tuf.exceptions.UnsignedMetadataError, repository.writeall, True)
|
||||
repository.root.unload_signing_key(root_privkey)
|
||||
self.assertRaises(tuf.exceptions.UnsignedMetadataError, repository.writeall, consistent_snapshot=True)
|
||||
|
||||
# Load the private keys of Root and Snapshot (new version required since
|
||||
# Root will change to enable consistent snapshots.
|
||||
|
|
|
|||
Loading…
Reference in a new issue