From 7c6303a887e32445ce4546ec5372311610eec895 Mon Sep 17 00:00:00 2001 From: ohmayr Date: Tue, 11 Aug 2026 16:27:24 +0000 Subject: [PATCH] chore(automl): mock AutoMlClient in test_predicition_client_client_info --- .../tests/unit/test_tables_client_v1beta1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-cloud-automl/tests/unit/test_tables_client_v1beta1.py b/packages/google-cloud-automl/tests/unit/test_tables_client_v1beta1.py index c6b273739ef8..68afee987162 100644 --- a/packages/google-cloud-automl/tests/unit/test_tables_client_v1beta1.py +++ b/packages/google-cloud-automl/tests/unit/test_tables_client_v1beta1.py @@ -1716,12 +1716,14 @@ def test_prediction_client_credentials(self): def test_prediction_client_client_info(self): credentials_mock = mock.Mock() client_info_mock = mock.Mock() + client_mock = mock.Mock() patch_prediction_client = mock.patch( "google.cloud.automl_v1beta1.services.tables.tables_client.PredictionServiceClient" ) with patch_prediction_client as MockPredictionClient: automl_v1beta1.TablesClient( credentials=credentials_mock, + client=client_mock, client_info=client_info_mock, ) _, prediction_client_kwargs = MockPredictionClient.call_args