Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and JulianMaurin committed Jul 21, 2022
1 parent 9ac51d9 commit 07428f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,9 @@ def test_raise_exception_audience_as_bytes(self, jwt):
payload = {"some": "payload", "aud": ["urn:me", "urn:someone-else"]}
token = jwt.encode(payload, "secret")
with pytest.raises(InvalidAudienceError):
jwt.decode(token, "secret", audience="urn:me".encode(), algorithms=["HS256"])
jwt.decode(
token, "secret", audience="urn:me".encode(), algorithms=["HS256"]
)

def test_raise_exception_invalid_audience_in_array(self, jwt):
payload = {
Expand Down

0 comments on commit 07428f2

Please sign in to comment.