Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _make_credentials(spec=None):
class TestAsyncGrpcClient(unittest.TestCase):
@mock.patch("google.cloud._storage_v2.StorageAsyncClient")
def test_constructor_default_options(self, mock_async_storage_client):
from google.cloud.storage._experimental import async_grpc_client
from google.cloud.storage._experimental.asyncio import async_grpc_client

mock_transport_cls = mock.MagicMock()
mock_async_storage_client.get_transport_class.return_value = mock_transport_cls
Expand Down Expand Up @@ -54,7 +54,7 @@ def test_constructor_default_options(self, mock_async_storage_client):

@mock.patch("google.cloud._storage_v2.StorageAsyncClient")
def test_constructor_disables_directpath(self, mock_async_storage_client):
from google.cloud.storage._experimental import async_grpc_client
from google.cloud.storage._experimental.asyncio import async_grpc_client

mock_transport_cls = mock.MagicMock()
mock_async_storage_client.get_transport_class.return_value = mock_transport_cls
Expand All @@ -74,7 +74,7 @@ def test_constructor_disables_directpath(self, mock_async_storage_client):

@mock.patch("google.cloud._storage_v2.StorageAsyncClient")
def test_grpc_client_property(self, mock_async_storage_client):
from google.cloud.storage._experimental import async_grpc_client
from google.cloud.storage._experimental.asyncio import async_grpc_client

mock_creds = _make_credentials()

Expand Down