subhramit commented on code in PR #71976:
URL: https://github.com/apache/airflow/pull/71976#discussion_r4020143870
##########
providers/influxdb/tests/unit/influxdb/operators/test_influxdb3.py:
##########
@@ -57,3 +60,64 @@ def test_execute(self, mock_hook_class):
assert isinstance(result[0], dict)
assert "col1" in result[0]
assert "col2" in result[0]
+
+
@mock.patch("airflow.providers.influxdb.operators.influxdb3.InfluxDB3Hook",
autospec=True)
+ def test_execute_deferrable_defers(self, mock_hook_class):
+ """In deferrable mode the operator defers instead of running the query
on the worker."""
+ operator = InfluxDB3Operator(
+ task_id="test_task_deferrable",
+ sql='SELECT "duration" FROM "pyexample"',
+ influxdb3_conn_id="influxdb3_default",
+ deferrable=True,
Review Comment:
Used in
https://github.com/apache/airflow/pull/71976/commits/318036fbe664941263a7d51f72d1d60f2b9f1ad6
--
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]