@@ -370,6 +370,9 @@ def test_operations_client_client_options(
370370
371371 # Check the case credentials_file is provided
372372 with pytest .warns (DeprecationWarning ):
373+ # The `credentials_file` argument is deprecated by
374+ # the Google Cloud Auth library (`google-auth`), which is the
375+ # upstream dependency responsible for handling authentication.
373376 options = client_options .ClientOptions (credentials_file = "credentials.json" )
374377 with mock .patch .object (transport_class , "__init__" ) as patched :
375378 patched .return_value = None
@@ -541,6 +544,9 @@ def test_operations_client_client_options_credentials_file(
541544):
542545 # Check the case credentials file is provided.
543546 with pytest .warns (DeprecationWarning ):
547+ # The `credentials_file` argument is deprecated by
548+ # the Google Cloud Auth library (`google-auth`), which is the
549+ # upstream dependency responsible for handling authentication.
544550 options = client_options .ClientOptions (credentials_file = "credentials.json" )
545551 if "async" in str (client_class ):
546552 with mock .patch .object (transport_class , "__init__" ) as patched :
@@ -584,6 +590,9 @@ def test_operations_client_client_options_credentials_file(
584590def test_list_operations_rest (google_auth_default , credentials_file ):
585591 if credentials_file is not None :
586592 with pytest .warns (DeprecationWarning ):
593+ # The `credentials_file` argument is deprecated by
594+ # the Google Cloud Auth library (`google-auth`), which is the
595+ # upstream dependency responsible for handling authentication.
587596 sync_transport = transports .rest .OperationsRestTransport (
588597 credentials_file = credentials_file ,
589598 http_options = HTTP_OPTIONS ,
@@ -1150,6 +1159,9 @@ def test_operations_base_transport_error():
11501159 # Passing both a credentials object and credentials_file should raise an error
11511160 with pytest .raises (core_exceptions .DuplicateCredentialArgs ):
11521161 with pytest .warns (DeprecationWarning ):
1162+ # The `credentials_file` argument is deprecated by
1163+ # the Google Cloud Auth library (`google-auth`), which is the
1164+ # upstream dependency responsible for handling authentication.
11531165 transports .OperationsTransport (
11541166 credentials = ga_credentials .AnonymousCredentials (),
11551167 credentials_file = "credentials.json" ,
@@ -1192,6 +1204,9 @@ def test_operations_base_transport_with_credentials_file():
11921204 Transport .return_value = None
11931205 load_creds .return_value = (ga_credentials .AnonymousCredentials (), None )
11941206 with pytest .warns (DeprecationWarning ):
1207+ # The `credentials_file` argument is deprecated by
1208+ # the Google Cloud Auth library (`google-auth`), which is the
1209+ # upstream dependency responsible for handling authentication.
11951210 transports .OperationsTransport (
11961211 credentials_file = "credentials.json" ,
11971212 quota_project_id = "octopus" ,
0 commit comments