Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 47555de

Browse files
committed
removes updates accidnetally added during experimentation and testing of this PR
1 parent d501661 commit 47555de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/oauth2/test__client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_jwt_grant_no_access_token():
313313

314314

315315
def test_call_iam_generate_id_token_endpoint():
316-
now = _helpers.utcnow().astimezone(datetime.timezone.utc)
316+
now = _helpers.utcnow()
317317
id_token_expiry = _helpers.datetime_to_secs(now)
318318
id_token = jwt.encode(SIGNER, {"exp": id_token_expiry}).decode("utf-8")
319319
request = make_request({"token": id_token})
@@ -343,7 +343,7 @@ def test_call_iam_generate_id_token_endpoint():
343343
# Check result
344344
assert token == id_token
345345
# JWT does not store microseconds
346-
now = now.replace(microsecond=0).replace(tzinfo=None)
346+
now = now.replace(microsecond=0)
347347
assert expiry == now
348348

349349

@@ -368,7 +368,7 @@ def test_call_iam_generate_id_token_endpoint_no_id_token():
368368

369369

370370
def test_id_token_jwt_grant():
371-
now = _helpers.utcnow().astimezone(datetime.timezone.utc)
371+
now = _helpers.utcnow()
372372
id_token_expiry = _helpers.datetime_to_secs(now)
373373
id_token = jwt.encode(SIGNER, {"exp": id_token_expiry}).decode("utf-8")
374374
request = make_request({"id_token": id_token, "extra": "data"})
@@ -385,7 +385,7 @@ def test_id_token_jwt_grant():
385385
# Check result
386386
assert token == id_token
387387
# JWT does not store microseconds
388-
now = now.replace(microsecond=0).replace(tzinfo=None)
388+
now = now.replace(microsecond=0)
389389
assert expiry == now
390390
assert extra_data["extra"] == "data"
391391

0 commit comments

Comments
 (0)