Skip to content
This repository was archived by the owner on Nov 29, 2023. 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 @@ -1267,7 +1267,7 @@ async def sample_test_iam_permissions():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "ConnectionServiceAsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-connection",
"version": "1.12.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
20 changes: 4 additions & 16 deletions tests/unit/gapic/bigquery_connection_v1/test_connection_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,9 +770,6 @@ def test_create_connection(request_type, transport: str = "grpc"):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=gcbc_connection.CloudSqlProperties(
instance_id="instance_id_value"
),
)
response = client.create_connection(request)

Expand Down Expand Up @@ -1058,7 +1055,6 @@ def test_get_connection(request_type, transport: str = "grpc"):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=connection.CloudSqlProperties(instance_id="instance_id_value"),
)
response = client.get_connection(request)

Expand Down Expand Up @@ -1696,9 +1692,11 @@ async def test_list_connections_async_pages():
RuntimeError,
)
pages = []
async for page_ in (
# Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
# See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
async for page_ in ( # pragma: no branch
await client.list_connections(request={})
).pages: # pragma: no branch
).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
Expand Down Expand Up @@ -1733,9 +1731,6 @@ def test_update_connection(request_type, transport: str = "grpc"):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=gcbc_connection.CloudSqlProperties(
instance_id="instance_id_value"
),
)
response = client.update_connection(request)

Expand Down Expand Up @@ -3081,9 +3076,6 @@ def test_create_connection_rest(request_type):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=gcbc_connection.CloudSqlProperties(
instance_id="instance_id_value"
),
)

# Wrap the value into a proper Response obj
Expand Down Expand Up @@ -3428,7 +3420,6 @@ def test_get_connection_rest(request_type):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=connection.CloudSqlProperties(instance_id="instance_id_value"),
)

# Wrap the value into a proper Response obj
Expand Down Expand Up @@ -4118,9 +4109,6 @@ def test_update_connection_rest(request_type):
creation_time=1379,
last_modified_time=1890,
has_credential=True,
cloud_sql=gcbc_connection.CloudSqlProperties(
instance_id="instance_id_value"
),
)

# Wrap the value into a proper Response obj
Expand Down