Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 9d64ab3

Browse files
committed
update the imports for _storage_v2
1 parent 7096a22 commit 9d64ab3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

google/cloud/storage/_experimental/grpc_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""A client for interacting with Google Cloud Storage using the gRPC API."""
1616

1717
from 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

tests/unit/test_grpc_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class 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

0 commit comments

Comments
 (0)