subhramit commented on code in PR #73522:
URL: https://github.com/apache/airflow/pull/73522#discussion_r4088207289


##########
providers/influxdb/tests/unit/influxdb/triggers/test_influxdb3.py:
##########
@@ -79,3 +79,111 @@ async def test_run_propagates_cancellation(self, 
mock_hook_class):
 
         with pytest.raises(asyncio.CancelledError):
             await anext(trigger.run())
+
+
+class TestInfluxDB3SensorTrigger:
+    def test_serialization(self):
+        trigger = InfluxDB3SensorTrigger(
+            sql=SQL,
+            influxdb3_conn_id=CONN_ID,
+            poll_interval=30,
+            fail_on_empty=True,
+        )
+
+        assert trigger.serialize() == (
+            
"airflow.providers.influxdb.triggers.influxdb3.InfluxDB3SensorTrigger",
+            {
+                "sql": SQL,
+                "influxdb3_conn_id": CONN_ID,
+                "poll_interval": 30,
+                "fail_on_empty": True,
+            },
+        )

Review Comment:
   Done. (I take your review seriously - blocking or not, point is to get the 
PR to the best state :))



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