potiuk commented on code in PR #39513:
URL: https://github.com/apache/airflow/pull/39513#discussion_r1596001681


##########
tests/providers/amazon/aws/links/test_base_aws.py:
##########
@@ -203,7 +204,10 @@ def test_link_serialize(self):
         """Test: Operator links should exist for serialized DAG."""
         self.create_op_and_ti(self.link_class, dag_id="test_link_serialize", 
task_id=self.task_id)
         serialized_dag = self.dag_maker.get_serialized_data()
-        operator_extra_link = 
serialized_dag["dag"]["tasks"][0]["__var"]["_operator_extra_links"]
+        if AIRFLOW_V_2_10_PLUS:
+            operator_extra_link = 
serialized_dag["dag"]["tasks"][0]["__var"]["_operator_extra_links"]
+        else:
+            operator_extra_link = 
serialized_dag["dag"]["tasks"][0]["_operator_extra_links"]

Review Comment:
   @bolkedebruin @uranusjr -> is that expected that when getting serialized 
dag, there is no `__var` in airflow 2.9 and before?  - it certainly looks like 
that - when I run the tests with airflow 2.9.1 installed, the above works.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to