@@ -770,9 +770,6 @@ def test_create_connection(request_type, transport: str = "grpc"):
770
770
creation_time = 1379 ,
771
771
last_modified_time = 1890 ,
772
772
has_credential = True ,
773
- cloud_sql = gcbc_connection .CloudSqlProperties (
774
- instance_id = "instance_id_value"
775
- ),
776
773
)
777
774
response = client .create_connection (request )
778
775
@@ -1058,7 +1055,6 @@ def test_get_connection(request_type, transport: str = "grpc"):
1058
1055
creation_time = 1379 ,
1059
1056
last_modified_time = 1890 ,
1060
1057
has_credential = True ,
1061
- cloud_sql = connection .CloudSqlProperties (instance_id = "instance_id_value" ),
1062
1058
)
1063
1059
response = client .get_connection (request )
1064
1060
@@ -1696,9 +1692,11 @@ async def test_list_connections_async_pages():
1696
1692
RuntimeError ,
1697
1693
)
1698
1694
pages = []
1699
- async for page_ in (
1695
+ # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
1696
+ # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
1697
+ async for page_ in ( # pragma: no branch
1700
1698
await client .list_connections (request = {})
1701
- ).pages : # pragma: no branch
1699
+ ).pages :
1702
1700
pages .append (page_ )
1703
1701
for page_ , token in zip (pages , ["abc" , "def" , "ghi" , "" ]):
1704
1702
assert page_ .raw_page .next_page_token == token
@@ -1733,9 +1731,6 @@ def test_update_connection(request_type, transport: str = "grpc"):
1733
1731
creation_time = 1379 ,
1734
1732
last_modified_time = 1890 ,
1735
1733
has_credential = True ,
1736
- cloud_sql = gcbc_connection .CloudSqlProperties (
1737
- instance_id = "instance_id_value"
1738
- ),
1739
1734
)
1740
1735
response = client .update_connection (request )
1741
1736
@@ -3081,9 +3076,6 @@ def test_create_connection_rest(request_type):
3081
3076
creation_time = 1379 ,
3082
3077
last_modified_time = 1890 ,
3083
3078
has_credential = True ,
3084
- cloud_sql = gcbc_connection .CloudSqlProperties (
3085
- instance_id = "instance_id_value"
3086
- ),
3087
3079
)
3088
3080
3089
3081
# Wrap the value into a proper Response obj
@@ -3428,7 +3420,6 @@ def test_get_connection_rest(request_type):
3428
3420
creation_time = 1379 ,
3429
3421
last_modified_time = 1890 ,
3430
3422
has_credential = True ,
3431
- cloud_sql = connection .CloudSqlProperties (instance_id = "instance_id_value" ),
3432
3423
)
3433
3424
3434
3425
# Wrap the value into a proper Response obj
@@ -4118,9 +4109,6 @@ def test_update_connection_rest(request_type):
4118
4109
creation_time = 1379 ,
4119
4110
last_modified_time = 1890 ,
4120
4111
has_credential = True ,
4121
- cloud_sql = gcbc_connection .CloudSqlProperties (
4122
- instance_id = "instance_id_value"
4123
- ),
4124
4112
)
4125
4113
4126
4114
# Wrap the value into a proper Response obj
0 commit comments