Skip to content

Commit ebd2fb9

Browse files
authored
Fix tests to match
1 parent 3bad492 commit ebd2fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_api_jws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def test_encode_decode_with_ecdsa_sha512(self, jws, payload):
544544
with open('tests/keys/testkey_ec', 'r') as ec_priv_file:
545545
priv_eckey = load_pem_private_key(ensure_bytes(ec_priv_file.read()),
546546
password=None, backend=default_backend())
547-
jws_message = jws.encode(payload, priv_eckey, algorithm='ES512')
547+
jws_message = jws.encode(payload, priv_eckey, algorithm='ES521')
548548

549549
with open('tests/keys/testkey_ec.pub', 'r') as ec_pub_file:
550550
pub_eckey = load_pem_public_key(ensure_bytes(ec_pub_file.read()), backend=default_backend())
@@ -553,7 +553,7 @@ def test_encode_decode_with_ecdsa_sha512(self, jws, payload):
553553
# string-formatted key
554554
with open('tests/keys/testkey_ec', 'r') as ec_priv_file:
555555
priv_eckey = ec_priv_file.read()
556-
jws_message = jws.encode(payload, priv_eckey, algorithm='ES512')
556+
jws_message = jws.encode(payload, priv_eckey, algorithm='ES521')
557557

558558
with open('tests/keys/testkey_ec.pub', 'r') as ec_pub_file:
559559
pub_eckey = ec_pub_file.read()

0 commit comments

Comments
 (0)