Skip to content

Commit

Permalink
made changes to the conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Nov 21, 2024
1 parent 2e365e0 commit 66eee00
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _make_token(
issued_in: float,
expires_in: float,
rsa_private_key: str,
jwt_access_token=False,
jwt_access_token: bool = False,
) -> dict[str, str]:
now = time.time()

Expand All @@ -124,17 +124,11 @@ def _make_token(
algorithm="RS256",
headers={"kid": "secret"},
)
if jwt_access_token:
access_token_encoded = jwt_token_encoded
id_token_encoded = jwt_access_token
else:
access_token_encoded = name
id_token_encoded = jwt_token_encoded
response = {
"access_token": access_token_encoded,
"access_token": jwt_token_encoded if jwt_access_token else name,
"token_type": "Bearer",
"refresh_token": "refresh_token",
"id_token": id_token_encoded,
"id_token": jwt_token_encoded,
}
return response

Expand Down

0 comments on commit 66eee00

Please sign in to comment.