forked from mpdavis/python-jose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates - black formatting, GH actions versions, tox 4 (mpdavis#313)
* Update GH actions, upgrade to tox 4 * reformat with the new version of black * Remove python 3.6 * More GHA updates * remove quotes
- Loading branch information
Showing
16 changed files
with
33 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
|
||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
|
||
class TestJWK: | ||
def test_interface(self): | ||
|
||
key = jwk.Key("key", "ALG") | ||
|
||
with pytest.raises(NotImplementedError): | ||
|
@@ -55,7 +54,6 @@ def test_invalid_hash_alg(self): | |
|
||
@pytest.mark.skipif(RSAKey is None, reason="RSA is not available") | ||
def test_invalid_jwk(self): | ||
|
||
with pytest.raises(JWKError): | ||
key = HMACKey(rsa_key, "HS256") | ||
|
||
|
@@ -67,7 +65,6 @@ def test_invalid_jwk(self): | |
|
||
@pytest.mark.skipif(RSAKey is None, reason="RSA is not available") | ||
def test_RSAKey_errors(self): | ||
|
||
rsa_key = { | ||
"kty": "RSA", | ||
"kid": "[email protected]", | ||
|
@@ -91,7 +88,6 @@ def test_RSAKey_errors(self): | |
key = RSAKey(rsa_key, "RS256") # noqa: F841 | ||
|
||
def test_construct_from_jwk(self): | ||
|
||
hmac_key = { | ||
"kty": "oct", | ||
"kid": "018c0ae5-4d9b-471b-bfd6-eef314bc7037", | ||
|
@@ -108,7 +104,6 @@ def test_construct_EC_from_jwk(self): | |
assert isinstance(key, jwk.Key) | ||
|
||
def test_construct_from_jwk_missing_alg(self): | ||
|
||
hmac_key = { | ||
"kty": "oct", | ||
"kid": "018c0ae5-4d9b-471b-bfd6-eef314bc7037", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.