grjones commented on code in PR #32000:
URL: https://github.com/apache/airflow/pull/32000#discussion_r1282581855
##########
tests/models/test_dag.py:
##########
@@ -1984,6 +1984,18 @@ def check_task(my_input):
dag.test()
mock_object.assert_called_with([0, 1, 2, 3, 4])
+ # TODO: enable timeout
+ # @pytest.mark.execution_timeout(120)
+ def test_deferrable_operator(self, dag_maker, session):
+ from airflow.sensors.date_time import DateTimeSensor
+
+ # TODO: Set True
+ with dag_maker(
+ dag_id="test_deferrable", is_paused_upon_creation=False,
start_date=DEFAULT_DATE, session=session
+ ) as dag:
+ DateTimeSensor(task_id="wait", target_time=datetime.datetime.now()
+ timedelta(seconds=1))
Review Comment:
This needs to use `DateTimeSensorAsync`, no?
--
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]