baolsen commented on a change in pull request #6773: [AIRFLOW-6038] AWS 
DataSync example_dags added
URL: https://github.com/apache/airflow/pull/6773#discussion_r357073003
 
 

 ##########
 File path: tests/providers/amazon/aws/operators/test_datasync.py
 ##########
 @@ -734,6 +818,7 @@ def test_xcom_push(self, mock_get_conn):
         self.set_up_operator()
         ti = TaskInstance(task=self.datasync, execution_date=timezone.utcnow())
         ti.run()
-        self.assertEqual(
-            ti.xcom_pull(task_ids=self.datasync.task_id, key='return_value'),
-            self.task_arn)
+        pushed_task_arn = ti.xcom_pull(
+            task_ids=self.datasync.task_id, key="return_value"
+        )["TaskArn"]
+        self.assertEqual(pushed_task_arn, self.task_arn)
 
 Review comment:
   Good catch. I've changed the functionality but still need to add tests 
regardless, so I'll do that :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to