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

Commit a26a988

Browse files
committed
Fixed test
1 parent 9e87438 commit a26a988

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_11_oauth2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from oidcmsg.oauth2 import ResponseMessage
1717
from oidcmsg.oidc import IdToken
1818
from oidcmsg.time_util import utc_time_sans_frac
19+
from oidcservice.exception import OidcServiceError
1920
from oidcservice.exception import ParseError
2021

2122
from oidcrp.oauth2 import Client
@@ -163,7 +164,7 @@ def test_error_response_2(self):
163164
400, err.to_json(),
164165
headers={'content-type': 'application/x-www-form-urlencoded'})
165166

166-
with pytest.raises(HTTPError):
167+
with pytest.raises(OidcServiceError):
167168
self.client.parse_request_response(
168169
self.client.service['authorization'], http_resp)
169170

0 commit comments

Comments
 (0)