tgmti commented on code in PR #46593: URL: https://github.com/apache/airflow/pull/46593#discussion_r1948012619
########## providers/tests/amazon/aws/sensors/test_rds.py: ########## @@ -223,6 +238,19 @@ def test_export_task_poke_false(self): ) assert not op.poke(None) + @mock_aws + def test_error_statuses(self): + # Simulate an error condition + _start_export_task_with_error(self.hook) + op = RdsExportTaskExistenceSensor( + task_id="export_task_error", + export_task_identifier=EXPORT_TASK_NAME, + aws_conn_id=AWS_CONN, + dag=self.dag, + ) + + assert "failed" in op.error_statuses Review Comment: this shouldn't test raise of AirflowFailException? -- 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