diff options
author | Pieter Ennes <pieter@ennes.nl> | 2018-09-20 23:10:17 +0100 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2018-09-21 01:10:17 +0300 |
commit | 326456cb78eb6b50e6f44f01cb0eaccc7652cf1f (patch) | |
tree | b524b1528b814e866e0276da7e608312057eecb4 /tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py | |
parent | 7fb3bd4eb20959b4c7e4615974b0f87456d05939 (diff) | |
download | oauthlib-326456cb78eb6b50e6f44f01cb0eaccc7652cf1f.tar.gz |
Fix OIDC tests (#565)
* Unmute ignored OIDC tests.
* Fix more import errors.
* Remove recently invalidated test for id_token_hint.
* Fix tested grants.
* Fix import on py27.
Diffstat (limited to 'tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py')
-rw-r--r-- | tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py b/tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py index 89431b6..517239a 100644 --- a/tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py +++ b/tests/openid/connect/core/endpoints/test_openid_connect_params_handling.py @@ -5,10 +5,10 @@ import mock from oauthlib.oauth2 import InvalidRequestError from oauthlib.oauth2.rfc6749.endpoints.authorization import \ AuthorizationEndpoint -from oauthlib.oauth2.rfc6749.grant_types import OpenIDConnectAuthCode from oauthlib.oauth2.rfc6749.tokens import BearerToken +from oauthlib.openid.connect.core.grant_types import AuthorizationCodeGrant -from ....unittest import TestCase +from tests.unittest import TestCase try: from urllib.parse import urlencode @@ -16,14 +16,12 @@ except ImportError: from urllib import urlencode - - class OpenIDConnectEndpointTest(TestCase): def setUp(self): self.mock_validator = mock.MagicMock() self.mock_validator.authenticate_client.side_effect = self.set_client - grant = OpenIDConnectAuthCode(request_validator=self.mock_validator) + grant = AuthorizationCodeGrant(request_validator=self.mock_validator) bearer = BearerToken(self.mock_validator) self.endpoint = AuthorizationEndpoint(grant, bearer, response_types={'code': grant}) |