Lee-W commented on code in PR #31712:
URL: https://github.com/apache/airflow/pull/31712#discussion_r1227895843


##########
tests/models/test_baseoperator.py:
##########
@@ -902,3 +909,13 @@ def add(x, y):
 
     dependants = list(gen_result.operator.iter_mapped_dependants())
     assert dependants == [add_result.operator]
+
+
+class TestBaseDeferrableOperator:
+    def test_load_default_deferrable(self) -> None:
+        class EmptyDeferrableOperator(BaseDeferrableOperator):
+            def execute(self, _):
+                pass
+
+        empty_deferrable_operator = 
EmptyDeferrableOperator(task_id="deferrable_operator")
+        assert empty_deferrable_operator.deferrable is DEFAULT_DEFERRABLE

Review Comment:
   Thanks! Just applied 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]

Reply via email to