Lee-W commented on code in PR #70492: URL: https://github.com/apache/airflow/pull/70492#discussion_r3663555676
########## providers/standard/tests/unit/standard/triggers/test_temporal.py: ########## @@ -23,11 +23,13 @@ import pendulum import pytest +from airflow.providers.common.compat.sdk import timezone from airflow.providers.standard.triggers.temporal import DateTimeTrigger, TimeDeltaTrigger from airflow.triggers.base import TriggerEvent -from airflow.utils import timezone from airflow.utils.state import TaskInstanceState -from airflow.utils.timezone import utcnow + +# Bound at import time so tests patching ``temporal.timezone.utcnow`` still read a real clock here. +utcnow = timezone.utcnow Review Comment: yep, your're right, i just checked. it's not something we can directly use in the old way. cool, then let's merge it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
