Skip to content

Commit b2813a0

Browse files
committed
tests: Remove unnecessary ignores
Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent ef54dec commit b2813a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def test_root_add_key_and_revoke_key(self) -> None:
414414

415415
# Assert that add_key with old argument order will raise an error
416416
with self.assertRaises(ValueError):
417-
root.signed.add_key(Root.type, key_metadata) # type: ignore
417+
root.signed.add_key(Root.type, key_metadata)
418418

419419
# Add new root key
420420
root.signed.add_key(key_metadata, Root.type)
@@ -515,7 +515,7 @@ def test_targets_key_api(self) -> None:
515515

516516
# Assert that add_key with old argument order will raise an error
517517
with self.assertRaises(ValueError):
518-
targets.add_key("role1", key) # type: ignore
518+
targets.add_key("role1", key)
519519

520520
# Assert that delegated role "role1" does not contain the new key
521521
self.assertNotIn(key.keyid, targets.delegations.roles["role1"].keyids)

0 commit comments

Comments
 (0)