From ba5481c332256df7ce2f04a90711dac52c13d3c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 28 Apr 2022 07:48:19 -0400 Subject: [PATCH] chore: use gapic-generator-python 0.65.2 (#28) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.2 PiperOrigin-RevId: 444333013 Source-Link: https://github.com/googleapis/googleapis/commit/f91b6cf82e929280f6562f6110957c654bd9e2e6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/16eb36095c294e712c74a1bf23550817b42174e5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../video_stitcher_service/async_client.py | 120 ++++++------- .../test_video_stitcher_service.py | 170 +++++++++--------- 2 files changed, 145 insertions(+), 145 deletions(-) diff --git a/packages/google-cloud-video-stitcher/google/cloud/video/stitcher_v1/services/video_stitcher_service/async_client.py b/packages/google-cloud-video-stitcher/google/cloud/video/stitcher_v1/services/video_stitcher_service/async_client.py index aba5213111d3..78d5b23bc3d5 100644 --- a/packages/google-cloud-video-stitcher/google/cloud/video/stitcher_v1/services/video_stitcher_service/async_client.py +++ b/packages/google-cloud-video-stitcher/google/cloud/video/stitcher_v1/services/video_stitcher_service/async_client.py @@ -263,9 +263,9 @@ async def create_cdn_key( from google.cloud.video import stitcher_v1 - def sample_create_cdn_key(): + async def sample_create_cdn_key(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.CreateCdnKeyRequest( @@ -274,7 +274,7 @@ def sample_create_cdn_key(): ) # Make the request - response = client.create_cdn_key(request=request) + response = await client.create_cdn_key(request=request) # Handle the response print(response) @@ -388,9 +388,9 @@ async def list_cdn_keys( from google.cloud.video import stitcher_v1 - def sample_list_cdn_keys(): + async def sample_list_cdn_keys(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.ListCdnKeysRequest( @@ -401,7 +401,7 @@ def sample_list_cdn_keys(): page_result = client.list_cdn_keys(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -497,9 +497,9 @@ async def get_cdn_key( from google.cloud.video import stitcher_v1 - def sample_get_cdn_key(): + async def sample_get_cdn_key(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetCdnKeyRequest( @@ -507,7 +507,7 @@ def sample_get_cdn_key(): ) # Make the request - response = client.get_cdn_key(request=request) + response = await client.get_cdn_key(request=request) # Handle the response print(response) @@ -595,9 +595,9 @@ async def delete_cdn_key( from google.cloud.video import stitcher_v1 - def sample_delete_cdn_key(): + async def sample_delete_cdn_key(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.DeleteCdnKeyRequest( @@ -605,7 +605,7 @@ def sample_delete_cdn_key(): ) # Make the request - client.delete_cdn_key(request=request) + await client.delete_cdn_key(request=request) Args: request (Union[google.cloud.video.stitcher_v1.types.DeleteCdnKeyRequest, dict]): @@ -681,16 +681,16 @@ async def update_cdn_key( from google.cloud.video import stitcher_v1 - def sample_update_cdn_key(): + async def sample_update_cdn_key(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.UpdateCdnKeyRequest( ) # Make the request - response = client.update_cdn_key(request=request) + response = await client.update_cdn_key(request=request) # Handle the response print(response) @@ -792,9 +792,9 @@ async def create_vod_session( from google.cloud.video import stitcher_v1 - def sample_create_vod_session(): + async def sample_create_vod_session(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) vod_session = stitcher_v1.VodSession() @@ -807,7 +807,7 @@ def sample_create_vod_session(): ) # Make the request - response = client.create_vod_session(request=request) + response = await client.create_vod_session(request=request) # Handle the response print(response) @@ -901,9 +901,9 @@ async def get_vod_session( from google.cloud.video import stitcher_v1 - def sample_get_vod_session(): + async def sample_get_vod_session(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetVodSessionRequest( @@ -911,7 +911,7 @@ def sample_get_vod_session(): ) # Make the request - response = client.get_vod_session(request=request) + response = await client.get_vod_session(request=request) # Handle the response print(response) @@ -996,9 +996,9 @@ async def list_vod_stitch_details( from google.cloud.video import stitcher_v1 - def sample_list_vod_stitch_details(): + async def sample_list_vod_stitch_details(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.ListVodStitchDetailsRequest( @@ -1009,7 +1009,7 @@ def sample_list_vod_stitch_details(): page_result = client.list_vod_stitch_details(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1106,9 +1106,9 @@ async def get_vod_stitch_detail( from google.cloud.video import stitcher_v1 - def sample_get_vod_stitch_detail(): + async def sample_get_vod_stitch_detail(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetVodStitchDetailRequest( @@ -1116,7 +1116,7 @@ def sample_get_vod_stitch_detail(): ) # Make the request - response = client.get_vod_stitch_detail(request=request) + response = await client.get_vod_stitch_detail(request=request) # Handle the response print(response) @@ -1203,9 +1203,9 @@ async def list_vod_ad_tag_details( from google.cloud.video import stitcher_v1 - def sample_list_vod_ad_tag_details(): + async def sample_list_vod_ad_tag_details(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.ListVodAdTagDetailsRequest( @@ -1216,7 +1216,7 @@ def sample_list_vod_ad_tag_details(): page_result = client.list_vod_ad_tag_details(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1313,9 +1313,9 @@ async def get_vod_ad_tag_detail( from google.cloud.video import stitcher_v1 - def sample_get_vod_ad_tag_detail(): + async def sample_get_vod_ad_tag_detail(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetVodAdTagDetailRequest( @@ -1323,7 +1323,7 @@ def sample_get_vod_ad_tag_detail(): ) # Make the request - response = client.get_vod_ad_tag_detail(request=request) + response = await client.get_vod_ad_tag_detail(request=request) # Handle the response print(response) @@ -1410,9 +1410,9 @@ async def list_live_ad_tag_details( from google.cloud.video import stitcher_v1 - def sample_list_live_ad_tag_details(): + async def sample_list_live_ad_tag_details(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.ListLiveAdTagDetailsRequest( @@ -1423,7 +1423,7 @@ def sample_list_live_ad_tag_details(): page_result = client.list_live_ad_tag_details(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1519,9 +1519,9 @@ async def get_live_ad_tag_detail( from google.cloud.video import stitcher_v1 - def sample_get_live_ad_tag_detail(): + async def sample_get_live_ad_tag_detail(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetLiveAdTagDetailRequest( @@ -1529,7 +1529,7 @@ def sample_get_live_ad_tag_detail(): ) # Make the request - response = client.get_live_ad_tag_detail(request=request) + response = await client.get_live_ad_tag_detail(request=request) # Handle the response print(response) @@ -1616,9 +1616,9 @@ async def create_slate( from google.cloud.video import stitcher_v1 - def sample_create_slate(): + async def sample_create_slate(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.CreateSlateRequest( @@ -1627,7 +1627,7 @@ def sample_create_slate(): ) # Make the request - response = client.create_slate(request=request) + response = await client.create_slate(request=request) # Handle the response print(response) @@ -1732,9 +1732,9 @@ async def list_slates( from google.cloud.video import stitcher_v1 - def sample_list_slates(): + async def sample_list_slates(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.ListSlatesRequest( @@ -1745,7 +1745,7 @@ def sample_list_slates(): page_result = client.list_slates(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1840,9 +1840,9 @@ async def get_slate( from google.cloud.video import stitcher_v1 - def sample_get_slate(): + async def sample_get_slate(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetSlateRequest( @@ -1850,7 +1850,7 @@ def sample_get_slate(): ) # Make the request - response = client.get_slate(request=request) + response = await client.get_slate(request=request) # Handle the response print(response) @@ -1935,16 +1935,16 @@ async def update_slate( from google.cloud.video import stitcher_v1 - def sample_update_slate(): + async def sample_update_slate(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.UpdateSlateRequest( ) # Make the request - response = client.update_slate(request=request) + response = await client.update_slate(request=request) # Handle the response print(response) @@ -2039,9 +2039,9 @@ async def delete_slate( from google.cloud.video import stitcher_v1 - def sample_delete_slate(): + async def sample_delete_slate(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.DeleteSlateRequest( @@ -2049,7 +2049,7 @@ def sample_delete_slate(): ) # Make the request - client.delete_slate(request=request) + await client.delete_slate(request=request) Args: request (Union[google.cloud.video.stitcher_v1.types.DeleteSlateRequest, dict]): @@ -2124,9 +2124,9 @@ async def create_live_session( from google.cloud.video import stitcher_v1 - def sample_create_live_session(): + async def sample_create_live_session(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.CreateLiveSessionRequest( @@ -2134,7 +2134,7 @@ def sample_create_live_session(): ) # Make the request - response = client.create_live_session(request=request) + response = await client.create_live_session(request=request) # Handle the response print(response) @@ -2236,9 +2236,9 @@ async def get_live_session( from google.cloud.video import stitcher_v1 - def sample_get_live_session(): + async def sample_get_live_session(): # Create a client - client = stitcher_v1.VideoStitcherServiceClient() + client = stitcher_v1.VideoStitcherServiceAsyncClient() # Initialize request argument(s) request = stitcher_v1.GetLiveSessionRequest( @@ -2246,7 +2246,7 @@ def sample_get_live_session(): ) # Make the request - response = client.get_live_session(request=request) + response = await client.get_live_session(request=request) # Handle the response print(response) diff --git a/packages/google-cloud-video-stitcher/tests/unit/gapic/stitcher_v1/test_video_stitcher_service.py b/packages/google-cloud-video-stitcher/tests/unit/gapic/stitcher_v1/test_video_stitcher_service.py index 638b7f99dba7..29b149f40743 100644 --- a/packages/google-cloud-video-stitcher/tests/unit/gapic/stitcher_v1/test_video_stitcher_service.py +++ b/packages/google-cloud-video-stitcher/tests/unit/gapic/stitcher_v1/test_video_stitcher_service.py @@ -781,7 +781,7 @@ def test_create_cdn_key_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateCdnKeyRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.create_cdn_key), "__call__") as call: @@ -797,7 +797,7 @@ def test_create_cdn_key_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -811,7 +811,7 @@ async def test_create_cdn_key_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateCdnKeyRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.create_cdn_key), "__call__") as call: @@ -827,7 +827,7 @@ async def test_create_cdn_key_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -1046,7 +1046,7 @@ def test_list_cdn_keys_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListCdnKeysRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.list_cdn_keys), "__call__") as call: @@ -1062,7 +1062,7 @@ def test_list_cdn_keys_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -1076,7 +1076,7 @@ async def test_list_cdn_keys_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListCdnKeysRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.list_cdn_keys), "__call__") as call: @@ -1094,7 +1094,7 @@ async def test_list_cdn_keys_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -1225,7 +1225,7 @@ def test_list_cdn_keys_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, cdn_keys.CdnKey) for i in results) @@ -1472,7 +1472,7 @@ def test_get_cdn_key_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetCdnKeyRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_cdn_key), "__call__") as call: @@ -1488,7 +1488,7 @@ def test_get_cdn_key_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1502,7 +1502,7 @@ async def test_get_cdn_key_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetCdnKeyRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_cdn_key), "__call__") as call: @@ -1518,7 +1518,7 @@ async def test_get_cdn_key_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1693,7 +1693,7 @@ def test_delete_cdn_key_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.DeleteCdnKeyRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.delete_cdn_key), "__call__") as call: @@ -1709,7 +1709,7 @@ def test_delete_cdn_key_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1723,7 +1723,7 @@ async def test_delete_cdn_key_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.DeleteCdnKeyRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.delete_cdn_key), "__call__") as call: @@ -1739,7 +1739,7 @@ async def test_delete_cdn_key_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1927,7 +1927,7 @@ def test_update_cdn_key_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.UpdateCdnKeyRequest() - request.cdn_key.name = "cdn_key.name/value" + request.cdn_key.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.update_cdn_key), "__call__") as call: @@ -1943,7 +1943,7 @@ def test_update_cdn_key_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "cdn_key.name=cdn_key.name/value", + "cdn_key.name=name_value", ) in kw["metadata"] @@ -1957,7 +1957,7 @@ async def test_update_cdn_key_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.UpdateCdnKeyRequest() - request.cdn_key.name = "cdn_key.name/value" + request.cdn_key.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.update_cdn_key), "__call__") as call: @@ -1973,7 +1973,7 @@ async def test_update_cdn_key_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "cdn_key.name=cdn_key.name/value", + "cdn_key.name=name_value", ) in kw["metadata"] @@ -2200,7 +2200,7 @@ def test_create_vod_session_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateVodSessionRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2218,7 +2218,7 @@ def test_create_vod_session_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2232,7 +2232,7 @@ async def test_create_vod_session_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateVodSessionRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2250,7 +2250,7 @@ async def test_create_vod_session_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2463,7 +2463,7 @@ def test_get_vod_session_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodSessionRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_vod_session), "__call__") as call: @@ -2479,7 +2479,7 @@ def test_get_vod_session_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2493,7 +2493,7 @@ async def test_get_vod_session_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodSessionRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_vod_session), "__call__") as call: @@ -2509,7 +2509,7 @@ async def test_get_vod_session_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2698,7 +2698,7 @@ def test_list_vod_stitch_details_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListVodStitchDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2716,7 +2716,7 @@ def test_list_vod_stitch_details_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2730,7 +2730,7 @@ async def test_list_vod_stitch_details_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListVodStitchDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2750,7 +2750,7 @@ async def test_list_vod_stitch_details_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2887,7 +2887,7 @@ def test_list_vod_stitch_details_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, stitch_details.VodStitchDetail) for i in results) @@ -3141,7 +3141,7 @@ def test_get_vod_stitch_detail_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodStitchDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3159,7 +3159,7 @@ def test_get_vod_stitch_detail_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -3173,7 +3173,7 @@ async def test_get_vod_stitch_detail_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodStitchDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3193,7 +3193,7 @@ async def test_get_vod_stitch_detail_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -3388,7 +3388,7 @@ def test_list_vod_ad_tag_details_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListVodAdTagDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3406,7 +3406,7 @@ def test_list_vod_ad_tag_details_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -3420,7 +3420,7 @@ async def test_list_vod_ad_tag_details_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListVodAdTagDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3440,7 +3440,7 @@ async def test_list_vod_ad_tag_details_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -3577,7 +3577,7 @@ def test_list_vod_ad_tag_details_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, ad_tag_details.VodAdTagDetail) for i in results) @@ -3831,7 +3831,7 @@ def test_get_vod_ad_tag_detail_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodAdTagDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3849,7 +3849,7 @@ def test_get_vod_ad_tag_detail_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -3863,7 +3863,7 @@ async def test_get_vod_ad_tag_detail_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetVodAdTagDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3883,7 +3883,7 @@ async def test_get_vod_ad_tag_detail_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4078,7 +4078,7 @@ def test_list_live_ad_tag_details_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListLiveAdTagDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4096,7 +4096,7 @@ def test_list_live_ad_tag_details_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -4110,7 +4110,7 @@ async def test_list_live_ad_tag_details_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListLiveAdTagDetailsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4130,7 +4130,7 @@ async def test_list_live_ad_tag_details_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -4267,7 +4267,7 @@ def test_list_live_ad_tag_details_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, ad_tag_details.LiveAdTagDetail) for i in results) @@ -4521,7 +4521,7 @@ def test_get_live_ad_tag_detail_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetLiveAdTagDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4539,7 +4539,7 @@ def test_get_live_ad_tag_detail_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4553,7 +4553,7 @@ async def test_get_live_ad_tag_detail_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetLiveAdTagDetailRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4573,7 +4573,7 @@ async def test_get_live_ad_tag_detail_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4766,7 +4766,7 @@ def test_create_slate_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateSlateRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.create_slate), "__call__") as call: @@ -4782,7 +4782,7 @@ def test_create_slate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -4796,7 +4796,7 @@ async def test_create_slate_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateSlateRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.create_slate), "__call__") as call: @@ -4812,7 +4812,7 @@ async def test_create_slate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5019,7 +5019,7 @@ def test_list_slates_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListSlatesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.list_slates), "__call__") as call: @@ -5035,7 +5035,7 @@ def test_list_slates_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5049,7 +5049,7 @@ async def test_list_slates_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.ListSlatesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.list_slates), "__call__") as call: @@ -5067,7 +5067,7 @@ async def test_list_slates_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5198,7 +5198,7 @@ def test_list_slates_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, slates.Slate) for i in results) @@ -5443,7 +5443,7 @@ def test_get_slate_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetSlateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_slate), "__call__") as call: @@ -5459,7 +5459,7 @@ def test_get_slate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5473,7 +5473,7 @@ async def test_get_slate_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetSlateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_slate), "__call__") as call: @@ -5489,7 +5489,7 @@ async def test_get_slate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5676,7 +5676,7 @@ def test_update_slate_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.UpdateSlateRequest() - request.slate.name = "slate.name/value" + request.slate.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.update_slate), "__call__") as call: @@ -5692,7 +5692,7 @@ def test_update_slate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "slate.name=slate.name/value", + "slate.name=name_value", ) in kw["metadata"] @@ -5706,7 +5706,7 @@ async def test_update_slate_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.UpdateSlateRequest() - request.slate.name = "slate.name/value" + request.slate.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.update_slate), "__call__") as call: @@ -5722,7 +5722,7 @@ async def test_update_slate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "slate.name=slate.name/value", + "slate.name=name_value", ) in kw["metadata"] @@ -5907,7 +5907,7 @@ def test_delete_slate_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.DeleteSlateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.delete_slate), "__call__") as call: @@ -5923,7 +5923,7 @@ def test_delete_slate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5937,7 +5937,7 @@ async def test_delete_slate_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.DeleteSlateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.delete_slate), "__call__") as call: @@ -5953,7 +5953,7 @@ async def test_delete_slate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -6166,7 +6166,7 @@ def test_create_live_session_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateLiveSessionRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6184,7 +6184,7 @@ def test_create_live_session_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -6198,7 +6198,7 @@ async def test_create_live_session_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.CreateLiveSessionRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6218,7 +6218,7 @@ async def test_create_live_session_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -6441,7 +6441,7 @@ def test_get_live_session_field_headers(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetLiveSessionRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_live_session), "__call__") as call: @@ -6457,7 +6457,7 @@ def test_get_live_session_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -6471,7 +6471,7 @@ async def test_get_live_session_field_headers_async(): # a field header. Set these to a non-empty value. request = video_stitcher_service.GetLiveSessionRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_live_session), "__call__") as call: @@ -6489,7 +6489,7 @@ async def test_get_live_session_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"]