Skip to content

Commit 771ef81

Browse files
committed
Skip for now if no cryptography
1 parent ced392c commit 771ef81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_jwks_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from jwt.api_jwk import PyJWK
77
from jwt.exceptions import PyJWKClientError
88

9+
from .test_algorithms import has_crypto
10+
911

1012
@pytest.fixture
1113
def mocked_response():
@@ -27,6 +29,9 @@ def mocked_response():
2729
}
2830

2931

32+
@pytest.mark.skipif(
33+
not has_crypto, reason="Not supported without cryptography library"
34+
)
3035
class TestPyJWKClient:
3136
def test_get_jwk_set(self, mocked_response):
3237
url = "https://dev-87evx9ru.auth0.com/.well-known/jwks.json"

0 commit comments

Comments
 (0)