Skip to content

Commit 37e7ff2

Browse files
give option to send id for token
1 parent 4079f34 commit 37e7ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def get_auth_header(token):
1414
return {'Authorization': f'Bearer {token}'}
1515

1616

17-
def get_expired_token_headers(app_context):
17+
def get_expired_token_headers(app_context, id=1):
1818
with app_context:
19-
token = create_access_token(identity=str(1), expires_delta=timedelta(seconds=-1))
19+
token = create_access_token(identity=str(id), expires_delta=timedelta(seconds=-1))
2020
return get_auth_header(token)
2121

2222

0 commit comments

Comments
 (0)