Skip to content

Commit 7d67b44

Browse files
committed
tests: Fix test signer to match new API
securesystemslib main requires Signers to have a public_key property. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 1512653 commit 7d67b44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_api.py

+4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ def from_priv_key_uri(
255255
) -> "Signer":
256256
pass
257257

258+
@property
259+
def public_key() -> Key:
260+
raise RuntimeError("Not a real signer")
261+
258262
def sign(self, payload: bytes) -> Signature:
259263
raise RuntimeError("signing failed")
260264

0 commit comments

Comments
 (0)