We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3f86d commit ba71269Copy full SHA for ba71269
1 file changed
tests/test_04_key_jar.py
@@ -1,5 +1,6 @@
1
import json
2
import os
3
+import warnings
4
import shutil
5
import time
6
@@ -445,11 +446,16 @@ def test_no_use(self):
445
446
@pytest.mark.network
447
def test_provider(self):
448
kj = KeyJar()
449
+ _url = "https://connect-op.herokuapp.com/jwks.json"
450
kj.load_keys(
- "https://connect-op.heroku.com", jwks_uri="https://connect-op.herokuapp.com/jwks.json",
451
+ "https://connect-op.heroku.com", jwks_uri=_url,
452
)
-
- assert kj.get_issuer_keys("https://connect-op.heroku.com")[0].keys()
453
+ iss_keys = kj.get_issuer_keys("https://connect-op.heroku.com")
454
+ if not iss_keys:
455
+ _msg = '{} is not available at this moment!'.format(_url)
456
+ warnings.warn(_msg)
457
+ else:
458
+ assert iss_kes[0].keys()
459
460
461
def test_import_jwks():
0 commit comments