This is an automated email from the ASF dual-hosted git repository.
potiuk 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 6bef6a5d2d4 Fix Azure Data Factory test broken by
azure-mgmt-datafactory update (#69785)
6bef6a5d2d4 is described below
commit 6bef6a5d2d485d1bf72a8e1c39f618866743c423
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Jul 12 21:42:40 2026 +0200
Fix Azure Data Factory test broken by azure-mgmt-datafactory update (#69785)
The test imported FactoryListResponse purely as an arbitrary non-empty
placeholder for the mocked factories.list() iterator; test_connection
never inspects the returned item. A recent azure-mgmt-datafactory release
removed that model, so test collection failed in the uncapped-dependency
Compat CI jobs on main. Use a neutral placeholder object so the test no
longer depends on a specific SDK model.
---
.../azure/tests/unit/microsoft/azure/hooks/test_data_factory.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/providers/microsoft/azure/tests/unit/microsoft/azure/hooks/test_data_factory.py
b/providers/microsoft/azure/tests/unit/microsoft/azure/hooks/test_data_factory.py
index 32eaa3db7a7..11a150c9234 100644
---
a/providers/microsoft/azure/tests/unit/microsoft/azure/hooks/test_data_factory.py
+++
b/providers/microsoft/azure/tests/unit/microsoft/azure/hooks/test_data_factory.py
@@ -22,7 +22,6 @@ from unittest.mock import MagicMock, PropertyMock, patch
import pytest
from azure.mgmt.datafactory.aio import DataFactoryManagementClient
-from azure.mgmt.datafactory.models import FactoryListResponse
from airflow.models.connection import Connection
from airflow.providers.common.compat.sdk import AirflowException
@@ -522,7 +521,7 @@ def test_cancel_trigger(hook: AzureDataFactoryHook):
@pytest.mark.parametrize(
argnames="factory_list_result",
- argvalues=[iter([FactoryListResponse]), iter([])],
+ argvalues=[iter([object()]), iter([])],
ids=["factory_exists", "factory_does_not_exist"],
)
def test_connection_success(hook, factory_list_result):