This is an automated email from the ASF dual-hosted git repository.

shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 69b1ce81da3 Remove duplicate Databricks retry test (#75889)
69b1ce81da3 is described below

commit 69b1ce81da302da379ba28d5f1a04a075b07b562
Author: Hussein Awala <[email protected]>
AuthorDate: Thu Oct 29 06:20:39 2026 +0100

    Remove duplicate Databricks retry test (#75889)
    
    Both tests use the same retry configuration and five exception types; the 
retained custom-retry test checks all the same assertions.
---
 .../tests/unit/databricks/hooks/test_databricks.py    | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git 
a/providers/databricks/tests/unit/databricks/hooks/test_databricks.py 
b/providers/databricks/tests/unit/databricks/hooks/test_databricks.py
index 747a30ef885..ac6d0705777 100644
--- a/providers/databricks/tests/unit/databricks/hooks/test_databricks.py
+++ b/providers/databricks/tests/unit/databricks/hooks/test_databricks.py
@@ -365,25 +365,6 @@ class TestDatabricksHook:
         with pytest.raises(ValueError, match="Retry limit must be greater than 
or equal to 1"):
             DatabricksHook(retry_limit=0)
 
-    def test_do_api_call_retries_with_retryable_error(self):
-        hook = DatabricksHook(retry_args=DEFAULT_RETRY_ARGS)
-
-        for exception in [
-            requests_exceptions.ConnectionError,
-            requests_exceptions.SSLError,
-            requests_exceptions.Timeout,
-            requests_exceptions.ConnectTimeout,
-            requests_exceptions.HTTPError,
-        ]:
-            with 
mock.patch("airflow.providers.databricks.hooks.databricks_base.requests") as 
mock_requests:
-                with mock.patch.object(hook.log, "error") as mock_errors:
-                    setup_mock_requests(mock_requests, exception)
-
-                    with pytest.raises(AirflowException):
-                        hook._do_api_call(SUBMIT_RUN_ENDPOINT, {})
-
-                    assert mock_errors.call_count == DEFAULT_RETRY_NUMBER
-
     def test_do_api_call_retries_with_too_many_requests(self):
         hook = DatabricksHook(retry_args=DEFAULT_RETRY_ARGS)
 

Reply via email to