firasbouzazi commented on code in PR #77271:
URL: https://github.com/apache/airflow/pull/77271#discussion_r4712745533
##########
providers/databricks/tests/unit/databricks/sensors/test_databricks.py:
##########
@@ -193,6 +191,64 @@ def test_exec_success(self, db_mock_class):
db_mock.post_sql_statement.assert_called_once_with(expected_json)
assert op.statement_id == STATEMENT_ID
+ @pytest.mark.parametrize("final_state", ["FAILED", "CANCELED", "CLOSED"])
Review Comment:
Good point. I dropped CLOSED from this test so it no longer pins it as a
failure. Treating CLOSED as success affects the deferrable path and the
operator too, since all of them go through SQLStatementState.is_successful, so
I'd rather handle it in a follow-up PR than widen this one. Happy to do it here
instead if you prefer @kaxil .
--
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]