Unit test JWT validation in Python

I would like to unit test our authentication code in python.

Now, we do have the app live which fetches fresh JWKS every hour - and validates the JWT token against that…
However, we want it to have unit tests for that.
I tried using the out-of-the-box options, external tools and what not - nothing worked.

I would respond with all that i have tried - if someone is curious about it.

Hi @rahul2,

Welcome to the Auth0 Community!

I understand that you are looking to perform unit tests for your JWT Tokens in Python.

Before we proceed, could you please clarify what you meant by nothing worked?

During your tests, did you have any errors?

And what, specifically, are you having issues with testing authentication?

I am looking forward to hearing from you.