Lee-W commented on code in PR #33405:
URL: https://github.com/apache/airflow/pull/33405#discussion_r1307320384
##########
tests/providers/amazon/aws/sensors/test_batch.py:
##########
@@ -100,6 +100,12 @@ def test_execute_failure_in_deferrable_mode(self,
deferrable_batch_sensor: Batch
with pytest.raises(AirflowException):
deferrable_batch_sensor.execute_complete(context={},
event={"status": "failure"})
+ def test_execute_failure_in_deferrable_mode_with_soft_fail(self,
deferrable_batch_sensor: BatchSensor):
+ """Tests that an AirflowSkipException is raised in case of error event
and soft_fail is set to True"""
+ deferrable_batch_sensor.soft_fail = True
+ with pytest.raises(AirflowException):
Review Comment:
Yep, you're right. Just updated it. Thanks!
--
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]