Skip to content

Commit 08b6ab0

Browse files
committed
Merge branch 'develop' into pyproject
2 parents 80a135f + 0abfce9 commit 08b6ab0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/test_04_key_jar.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import shutil
44
import time
5+
import warnings
56

67
import 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

456462
def test_import_jwks():

0 commit comments

Comments
 (0)