This repository was archived by the owner on Mar 31, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google/cloud/storage/_experimental Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515"""A client for interacting with Google Cloud Storage using the gRPC API."""
1616
1717from google .cloud .client import ClientWithProject
18- from google .cloud import storage_v2
18+ from google .cloud import _storage_v2 as storage_v2
1919
2020_marker = object ()
2121
Original file line number Diff line number Diff line change 1919
2020class TestGrpcClient (unittest .TestCase ):
2121 @mock .patch ("google.cloud.client.ClientWithProject.__init__" )
22- @mock .patch ("google.cloud.storage_v2 .StorageClient" )
22+ @mock .patch ("google.cloud._storage_v2 .StorageClient" )
2323 def test_constructor_defaults_and_options (
2424 self , mock_storage_client , mock_base_client
2525 ):
@@ -63,7 +63,7 @@ def test_constructor_defaults_and_options(
6363 self .assertIs (client ._grpc_client , mock_storage_client .return_value )
6464
6565 @mock .patch ("google.cloud.storage._experimental.grpc_client.ClientWithProject" )
66- @mock .patch ("google.cloud.storage_v2 .StorageClient" )
66+ @mock .patch ("google.cloud._storage_v2 .StorageClient" )
6767 def test_constructor_can_enable_direct_path (
6868 self , mock_storage_client , mock_base_client
6969 ):
@@ -86,7 +86,7 @@ def test_constructor_can_enable_direct_path(
8686 )
8787
8888 @mock .patch ("google.cloud.storage._experimental.grpc_client.ClientWithProject" )
89- @mock .patch ("google.cloud.storage_v2 .StorageClient" )
89+ @mock .patch ("google.cloud._storage_v2 .StorageClient" )
9090 def test_constructor_handles_api_key (self , mock_storage_client , mock_base_client ):
9191 from google .cloud .storage ._experimental import grpc_client
9292
You can’t perform that action at this time.
0 commit comments