Skip to content

Incomplete unit test test_verify_expiration ? #75

@bew

Description

@bew

Hello,

While reading the source code of this library I noticed something strange:

# verify token is expired
claims = {'ver': 1,
'jti': 'test_jti_str',
'iss': issuer,
'iat': iss_time,
'exp': iss_time-300,
'uid': 'test_uid',
'scp': ['openid'],
'sub': 'test_jwt@okta.com'}
with pytest.raises(JWTValidationException):
jwt_verifier.verify_expiration('test_token')

The variable claims is never used again so is basically useless. Mistake? bad copy/paste?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions