Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit 18b13d6

Browse files
committed
Different exception raised
1 parent 9788d8c commit 18b13d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_02_client_authn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import base64
22

33
import pytest
4+
from cryptojwt.jws.exception import NoSuitableSigningKeys
45
from cryptojwt.jwt import JWT
56
from cryptojwt.key_jar import KeyJar
67
from cryptojwt.key_jar import build_keyjar
@@ -231,7 +232,7 @@ def test_jws_authn_method_wrong_key():
231232

232233
request = {"client_assertion": _assertion, "client_assertion_type": JWT_BEARER}
233234

234-
with pytest.raises(AuthnFailure):
235+
with pytest.raises(NoSuitableSigningKeys):
235236
JWSAuthnMethod(endpoint_context).verify(request)
236237

237238

0 commit comments

Comments
 (0)