File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 22import os
33import shutil
44import time
5+ import warnings
56
67import pytest
78
@@ -446,11 +447,16 @@ def test_no_use(self):
446447 @pytest .mark .skip ("connect-op.herokuapp.com is broken" )
447448 def test_provider (self ):
448449 kj = KeyJar ()
450+ _url = "https://connect-op.herokuapp.com/jwks.json"
449451 kj .load_keys (
450- "https://connect-op.heroku.com" , jwks_uri = "https://connect-op.herokuapp.com/jwks.json" ,
452+ "https://connect-op.heroku.com" , jwks_uri = _url ,
451453 )
452-
453- assert kj .get_issuer_keys ("https://connect-op.heroku.com" )[0 ].keys ()
454+ iss_keys = kj .get_issuer_keys ("https://connect-op.heroku.com" )
455+ if not iss_keys :
456+ _msg = "{} is not available at this moment!" .format (_url )
457+ warnings .warn (_msg )
458+ else :
459+ assert iss_kes [0 ].keys ()
454460
455461
456462def test_import_jwks ():
You can’t perform that action at this time.
0 commit comments