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 58e987defec Fix Non-DB test collection failure in Google Stackdriver
hook test (#74066)
58e987defec is described below
commit 58e987defecc73e4259e9c3d1f53b92dc00ce38d
Author: PoAn Yang <[email protected]>
AuthorDate: Fri Oct 2 15:19:25 2026 +0900
Fix Non-DB test collection failure in Google Stackdriver hook test (#74066)
Signed-off-by: PoAn Yang <[email protected]>
---
providers/google/tests/unit/google/cloud/hooks/test_stackdriver.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/providers/google/tests/unit/google/cloud/hooks/test_stackdriver.py
b/providers/google/tests/unit/google/cloud/hooks/test_stackdriver.py
index 4fe4afb77c6..0e60908f0ec 100644
--- a/providers/google/tests/unit/google/cloud/hooks/test_stackdriver.py
+++ b/providers/google/tests/unit/google/cloud/hooks/test_stackdriver.py
@@ -29,7 +29,7 @@ from airflow.providers.google.cloud.hooks.stackdriver import
StackdriverHook
@mock.patch(
"airflow.providers.google.common.hooks.base_google.GoogleBaseHook.get_connection",
- return_value=Connection(conn_id="google_cloud_default"),
+ return_value=mock.MagicMock(spec=Connection),
)
def test_deprecated_hook_warns_and_subclasses_new_hook(mock_get_connection):
with pytest.warns(AirflowProviderDeprecationWarning,
match="CloudMonitoring"):