From b3bd5202f94c33957c14af242566095ef1ae2382 Mon Sep 17 00:00:00 2001 From: Joakim Nordling Date: Mon, 13 Nov 2023 16:16:04 +0200 Subject: [PATCH] Fix typo & improve formatting --- pyjwt_key_fetcher/tests/conftest.py | 1 + pyjwt_key_fetcher/tests/test_fetcher.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyjwt_key_fetcher/tests/conftest.py b/pyjwt_key_fetcher/tests/conftest.py index eea2f5c..743b6cd 100644 --- a/pyjwt_key_fetcher/tests/conftest.py +++ b/pyjwt_key_fetcher/tests/conftest.py @@ -62,6 +62,7 @@ def __init__(self, iss: str = "https://example.com", aud: str = "default_audienc self.iss = iss self.aud = aud self.keys: List[RSAPrivateKeyWrapper] = [] + self.generate_new_key() def generate_new_key(self): diff --git a/pyjwt_key_fetcher/tests/test_fetcher.py b/pyjwt_key_fetcher/tests/test_fetcher.py index a8c8043..9d82cb1 100644 --- a/pyjwt_key_fetcher/tests/test_fetcher.py +++ b/pyjwt_key_fetcher/tests/test_fetcher.py @@ -59,7 +59,7 @@ async def test_fetching_after_issuing_new_key(create_provider_fetcher_and_client # Let's simulate the cache expired await pyjwt_key_fetcher.provider.Provider._fetch_jwk_map.cache.clear() - # Now the the new token can be verified + # Now the new token can be verified key_entry_2 = await fetcher.get_key(token_2) jwt.decode(token_2, audience=provider.aud, **key_entry_2)