amoghrajesh commented on code in PR #76295:
URL: https://github.com/apache/airflow/pull/76295#discussion_r4453381877


##########
providers/databricks/tests/unit/databricks/operators/test_databricks.py:
##########
@@ -5267,3 +5267,105 @@ def 
test_monitor_waits_out_waiting_for_retry_state(self, mock_databricks_hook, m
 
         operator.monitor_databricks_job()
         assert mock_databricks_hook.return_value.get_run.call_count == 3
+
+
[email protected](
+    not AIRFLOW_V_3_3_PLUS, reason="task_state_store (durable execution) 
requires Airflow 3.3+"
+)
+class TestDatabricksTaskBaseOperatorDurable:

Review Comment:
   Added terminal-failure and 404 resubmit cases, a durable=False case that 
never touches the store, and a default_args case, all parametrized across both 
operators so the `durable=durable` forward is `covered. _state` moved to module 
level as `make_run_state` and the `SubmitRun` and `RunNow` copies now use it 
too. 
   
   Since the predicates are shared after the refactor above, the 
lifecycle-state parametrization lives in a new `TestRunStatusHelpers` rather 
than a third per-class copy. Verified: removing "BLOCKED" fails 5 tests, 
turning the 404 branch into a raise fails 5, and dropping durable=durable fails 
2.
   



-- 
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]

Reply via email to