Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/unit/sagemaker/workflow/test_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from datetime import datetime

import pytest
import pytz
from zoneinfo import ZoneInfo
from mock.mock import ANY
from sagemaker.workflow.parameters import ParameterInteger, ParameterFloat, ParameterBoolean

Expand Down Expand Up @@ -47,7 +47,7 @@
PIPELINE_ARN = "arn:pipeline/TestSchedulerPipeline"
PIPELINE_NAME = "TestSchedulerPipeline"

PACIFIC = pytz.timezone("US/Pacific")
PACIFIC = ZoneInfo("US/Pacific")


@pytest.fixture
Expand Down Expand Up @@ -105,8 +105,8 @@ def test_resolve_schedule_expressions_common_cases(inputs):
@pytest.mark.parametrize(
"input_dt, expected_dt",
[
(PACIFIC.localize(INPUT_AT_DATETIME_PST), EXPECTED_AT_EXPRESSION), # PST -7UTC)
(PACIFIC.localize(INPUT_AT_DATETIME_PDT), EXPECTED_AT_EXPRESSION_DST), # PDT -8UTC
(INPUT_AT_DATETIME_PST.replace(tzinfo=PACIFIC), EXPECTED_AT_EXPRESSION), # PST -7UTC)
(INPUT_AT_DATETIME_PDT.replace(tzinfo=PACIFIC), EXPECTED_AT_EXPRESSION_DST), # PDT -8UTC
(INPUT_AT_DATETIME_UTC, EXPECTED_AT_EXPRESSION), # UTC
],
)
Expand Down
Loading