uranusjr commented on code in PR #51043:
URL: https://github.com/apache/airflow/pull/51043#discussion_r2106153941


##########
providers/standard/tests/unit/standard/sensors/test_time.py:
##########
@@ -58,6 +58,35 @@ def test_target_time_aware_dag_timezone(self):
             op = TimeSensor(task_id="test", target_time=aware_time)
             assert op.target_datetime.tzinfo == timezone.utc
 
+    @pytest.mark.parametrize(
+        "current_datetime, server_timezone",
+        [
+            ("2025-01-26 23:00:00", "UTC"),
+            ("2025-01-27 07:00:00", DEFAULT_TIMEZONE),

Review Comment:
   This test would break if someone changes `DEFAULT_TIMEZONE` without noticing 
it depends on this case relies on exactly 7+ hours of offset. It would be much 
better to create a timezone explicitly for this test.



-- 
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]

Reply via email to