Skip to content

Commit 0db19e6

Browse files
committed
tests: adapted tests
1 parent e699c06 commit 0db19e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyeudiw/tests/jwk/test_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ def test_parse_x5c_keys():
5454
assert False
5555
except Exception as e:
5656
assert isinstance(e, InvalidJwk)
57-
assert str(e) == "unable to parse key from pem: invalid_x5c"
57+
assert str(e) == "unable to parse key from pem chain: ['invalid_x5c']"

pyeudiw/tests/openid4vp/test_vp_sd_jwt_vc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,5 @@ def test_handler_failed_validation():
274274
)
275275
assert False, "Validation should have failed."
276276
except Exception as e:
277-
assert str(e) == "Unknown Trust Anchor: 'https://credential_issuer.example.org' is not a recognizable Trust Anchor.", "Incorrect exception message."
277+
assert str(e) == "Unknown Trust Anchor: 'https://credential-issuer.example.org' is not a recognizable Trust Anchor.", "Incorrect exception message."
278278

pyeudiw/tests/satosa/test_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from pyeudiw.jwt.jwe_helper import JWEHelper
5555
from pyeudiw.satosa.utils.response import JsonResponse
5656
from pyeudiw.tests.x509.test_x509 import gen_chain
57-
from pyeudiw.x509.verify import der_list_to_pem_list
57+
from pyeudiw.x509.verify import to_pem_list
5858
from pyeudiw.jwk.parse import parse_pem
5959

6060
PKEY = {
@@ -113,7 +113,7 @@ class TestOpenID4VPBackend:
113113
def create_backend(self):
114114
db_engine_inst = DBEngine(CONFIG["storage"])
115115

116-
self.chain = der_list_to_pem_list(DEFAULT_X509_CHAIN)
116+
self.chain = to_pem_list(DEFAULT_X509_CHAIN)
117117
issuer_pem = self.chain[-1]
118118
self.x509_leaf_private_key = DEFAULT_X509_LEAF_JWK
119119

0 commit comments

Comments
 (0)