11import json
2+
23import pytest
34
45from jwt .api_jwk import PyJWK , PyJWKSet
1516
1617class TestPyJWK :
1718 @pytest .mark .skipif (
18- not has_crypto , reason = "Scenario requires cryptography to not be installed"
19+ not has_crypto ,
20+ reason = "Scenario requires cryptography to not be installed" ,
1921 )
2022 def test_should_load_key_from_jwk_data_dict (self ):
2123 algo = RSAAlgorithm (RSAAlgorithm .SHA256 )
@@ -38,7 +40,8 @@ def test_should_load_key_from_jwk_data_dict(self):
3840 assert jwk .public_key_use == "sig"
3941
4042 @pytest .mark .skipif (
41- not has_crypto , reason = "Scenario requires cryptography to not be installed"
43+ not has_crypto ,
44+ reason = "Scenario requires cryptography to not be installed" ,
4245 )
4346 def test_should_load_key_from_jwk_data_json_string (self ):
4447 algo = RSAAlgorithm (RSAAlgorithm .SHA256 )
@@ -63,7 +66,8 @@ def test_should_load_key_from_jwk_data_json_string(self):
6366
6467class TestPyJWKSet :
6568 @pytest .mark .skipif (
66- not has_crypto , reason = "Scenario requires cryptography to not be installed"
69+ not has_crypto ,
70+ reason = "Scenario requires cryptography to not be installed" ,
6771 )
6872 def test_should_load_keys_from_jwk_data_dict (self ):
6973 algo = RSAAlgorithm (RSAAlgorithm .SHA256 )
@@ -87,7 +91,8 @@ def test_should_load_keys_from_jwk_data_dict(self):
8791 assert jwk .public_key_use == "sig"
8892
8993 @pytest .mark .skipif (
90- not has_crypto , reason = "Scenario requires cryptography to not be installed"
94+ not has_crypto ,
95+ reason = "Scenario requires cryptography to not be installed" ,
9196 )
9297 def test_should_load_keys_from_jwk_data_json_string (self ):
9398 algo = RSAAlgorithm (RSAAlgorithm .SHA256 )
0 commit comments