remove pytz remnants

This commit is contained in:
Kenneth Kehl
2025-02-24 10:32:39 -08:00
parent b1712964a8
commit cd8564204f
4 changed files with 4 additions and 4 deletions

View File

@@ -988,4 +988,4 @@ def admin_request(client):
def datetime_in_past(days=0, seconds=0):
return datetime.now(tz=ZoneInfo.UTC) - timedelta(days=days, seconds=seconds)
return datetime.now(tz=ZoneInfo("UTC")) - timedelta(days=days, seconds=seconds)

View File

@@ -183,7 +183,7 @@ def test_create_scheduled_job(client, sample_template, mocker, fake_uuid):
assert resp_json["data"]["id"] == fake_uuid
assert (
resp_json["data"]["scheduled_for"]
== datetime(2016, 1, 5, 11, 59, 0, tzinfo=ZoneInfo.UTC).isoformat()
== datetime(2016, 1, 5, 11, 59, 0, tzinfo=ZoneInfo("UTC")).isoformat()
)
assert resp_json["data"]["job_status"] == JobStatus.SCHEDULED
assert resp_json["data"]["template"] == str(sample_template.id)