diff --git a/setup.py b/setup.py index 6994681..53b5b72 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ packages=['hydra'], install_requires=[ 'pycryptodome==3.6.6', - 'python-jose==1.3.2', + 'python-jose==3.0.1', 'requests==2.19.1', ], author='O.S. Systems Software LTDA', diff --git a/tests/test_jwk.py b/tests/test_jwk.py index e1ff060..7dbf2e1 100644 --- a/tests/test_jwk.py +++ b/tests/test_jwk.py @@ -5,7 +5,7 @@ import unittest from unittest.mock import patch -from Crypto.PublicKey.RSA import _RSAobj +from Crypto.PublicKey.RSA import RsaKey from hydra import Hydra, JWK from hydra.exceptions import HydraResponseError, HydraRequestError @@ -55,8 +55,8 @@ def test_can_convert_base64_to_int(self): def test_can_convert_to_RSA(self): jwk_public = JWK(**self.public_key) jwk_private = JWK(**self.private_key) - self.assertIsInstance(jwk_public.to_rsa(), _RSAobj) - self.assertIsInstance(jwk_private.to_rsa(), _RSAobj) + self.assertIsInstance(jwk_public.to_rsa(), RsaKey) + self.assertIsInstance(jwk_private.to_rsa(), RsaKey) class JWKManagerTestCase(unittest.TestCase):